Scope

Scope prototype extensions

Import

_ <- fat.type.Scope

Constructor

Name Signature Brief
Scope (val: Any) Wrap val into a scope

Prototype members

Name Signature Brief
isEmpty (): Boolean Return true if size is zero
nonEmpty (): Boolean Return true if non-zero size
size (): Number Return number of entries
toText (): Text Return 'Scope' text literal

Example

_ <- fat.type.Scope
x = { num = 12, prop = 'other' }
x.size  # yields 2

See also

results matching ""

    No results matching ""