NAME
Zuzu::Value::Function - runtime value class for function values
DESCRIPTION
Represents user-defined or native callable values, including closure state.
INHERITANCE
Inherits from Moo::Object.
ROLES
None.
ATTRIBUTES
name
Type: Str.
Identifier name declared or referenced by the node/value.
params
Type: ArrayRef[Str].
Ordered list of named function parameters.
vararg
Type: Maybe[Str].
Optional parameter name that receives trailing arguments.
body
Type: InstanceOf["Zuzu::AST::Block"].
Function or loop block executed by the node/value.
closure_env
Type: Maybe[InstanceOf["Zuzu::Env"]].
Lexical environment captured when the function is created.
METHODS
is_truthy
Returns this runtime value's truthiness in ZuzuScript.
SEE ALSO
Subclasses: none in this distribution.
COPYRIGHT AND LICENCE
Zuzu::Value::Function is copyright Toby Inkster.
It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.