diff options
Diffstat (limited to 'core/base/fndef.moon')
| -rw-r--r-- | core/base/fndef.moon | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/core/base/fndef.moon b/core/base/fndef.moon deleted file mode 100644 index b79ad85..0000000 --- a/core/base/fndef.moon +++ /dev/null @@ -1,26 +0,0 @@ ----- --- user-function definition (`fndef`). --- --- When called, expands to its body with params bound to the fn arguments (see --- `invoke.fn_invoke`). --- --- @classmod FnDef - -class FnDef ---- static functions --- @section static - - --- create a new instance - -- - -- @classmethod - -- @tparam {Value,...} params (`AST:quote`d) naming the function parameters - -- @tparam AST body (`AST:quote`d) expression the function evaluates to - -- @tparam Scope scope the lexical scope the function was defined in (closure) - new: (@params, @body, @scope) => - - __tostring: => - "(fn (#{table.concat [p\stringify! for p in *@params], ' '}) ...)" - -{ - :FnDef -} |
