Functionally Equivalent Language Translation →
(function func-name ( [ p1 p2 .. pN ] ) body) (function+ func-name ( [ (p1 "Hello") ] )) ; acl: public, p1 defaults to a string value (function# func-name ( [ (p1 :ref) ] )) ; acl: protected, p1 is a reference variable (function- func-name ( [ (p1 ()) ] )) ; acl: private p1 defaults to 'NULL' (function* ( [ p1 p2 ] ) body ) ; anonymous function with two parameters
See also DEFUNC CLASS MVAR CVAR Coding for PHP Coding for javaScript
This is a synonym for DEFUN
and its variants. Please refer to the DEFUN instruction for further information.