Constructs an abstract syntax tree (AST) node representing a function.
Arguments
- name
A character string representing the function name.
- value
An AST node representing the function body or expression.
- index
An AST node (typically dims or when) defining the index set.
- ...
Additional fields stored on the node (passed to
new_ast()).
