FN - source-solutions/HELP GitHub Wiki

FN


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.

Parameters

  • name is the name of a previously defined function.
  • arg_0, arg_1, ... are expressions, given as parameters to the function.

Notes

  • In Microsoft BASIC, spaces between FN and name are optional.
  • Unlike Microsoft BASIC, in SE Basic IV, functions can be called recursively, albeit without tail call optimization.

Errors

  • 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.
⚠️ **GitHub.com Fallback** ⚠️