java.lang.Object
com.github.basking2.sdsai.itrex.functions.function.FnFunction
All Implemented Interfaces:
FunctionInterface<FunctionInterface<?>>, BiFunction<Iterator<?>,EvaluationContext,FunctionInterface<?>>

public class FnFunction extends Object implements FunctionInterface<FunctionInterface<?>>
A handy utility function that defines a function or retrieves a definition of one. The first argument to this is always a function name. The optional second argument is a function body that will be registered under the given name. If no function body is given, the previously defined function is looked up or an exception is thrown.