FN - source-solutions/HELP GitHub Wiki
result = FN[ ]name [(arg_0 [, arg_1] ...)
Evaluates the user-defined function previously defined with DEF FN
name
.
Spaces between FN
and name
are required.
-
name
is the name of a previously defined function. -
arg_0, arg_1, ...
are expressions, given as parameters to the function.
- In Microsoft BASIC, spaces between
FN
andname
are optional. - Unlike Microsoft BASIC, in SE Basic IV, functions can be called recursively, albeit without tail call optimization.
- No function named
name
is defined: Undefined user function. - The number of parameters differs from the function definition: Syntax error.
- The type of one or more parameters differs from the function definition: Type mismatch.
- The return type is incompatible with the function name's sigil: Type mismatch.