Printer
GetFunctionSignature
get list of type signatures for function
Calling Sequence
Parameters
Description
Examples
Printer:-GetFunctionSignature(fname)
-
Printer module
fname
string; function name
The GetFunctionSignature command returns a list of acceptable type signatures and precisions for a function fname.
An element of the list returned is itself a list, whose first operand is an accepted type signature for fname, and whose second is a set specifying the precision of this signature.
If fname has not been defined with the AddFunction command, then GetFunctionSignature returns the empty list.
with⁡CodeGeneration:
Printer≔LanguageDefinitionDefaultPrinter⁡:
Printer:-AddFunction⁡sin,numeric::numeric,sin
sin,∅
Printer:-AddFunction⁡cos,numeric::numeric,cos
cos,∅
Printer:-AddFunction⁡tan,numeric::numeric,tan
tan,∅
Printer:-AddFunction⁡tan,numeric,numeric::numeric,tan
Printer:-GetFunctionSignature⁡cos
numeric::numeric,numeric=double,generic,single,∅
Printer:-GetFunctionSignature⁡tan
numeric::numeric,numeric=double,generic,single,∅,numeric,numeric::numeric,numeric=double,generic,single,∅
See Also
AddFunction
GetFunction
Download Help Document