keen/misc
SourceThis is a standard module
and does not need to be explicitly imported.
void builtinlambda-data[r, p] builtinlambda-mut[r, p] builtinreference[t] record mut (has private fields)Wraps a value in a mutable record.
global spec builtin builtinunsafe spec builtin builtinjava spec builtin builtinjs spec builtin builtinnew[t] specnew t()If this spec is implemented for a type, that type has an implicit empty value.
list-new[col, elem] speclist-new col(elems elem[])If this spec is implemented for a type, that type is considered a collection. Collections can be constructed using list syntax (
- x and -- xs).to[output, input] specto output(a input)Converts between two types.
copy[t] speccopy t(a t)Shallowly copies a mutable type.
data[t] spec builtin builtinRequires the type to be immutable, meaning not
mut or shared.subscript[r, p] r(a r data(p), params p)Calls the function and returns its return value.
subscript[r, p] r(a r shared(p), params p)subscript[r, p] r(a r mut(p), params p)