Scope prototype extensions


_ <- fat.type.Scope


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
copy (): Scope Return deep copy of scope
keys (): List Return list of scope keys
maybe (key: Text): Option Return Option wrapped value


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

See also

results matching ""

    No results matching ""