keen/misc

Source
This is a standard module and does not need to be explicitly imported.
void builtin
lambda-data[r, p] builtin
lambda-mut[r, p] builtin
lambda-shared[r, p] builtin
reference[t] record mut (has private fields)
Wraps a value in a mutable record.
global spec builtin builtin
unsafe spec builtin builtin
java spec builtin builtin
js spec builtin builtin
new void()
new[t] spec
new t()
If this spec is implemented for a type, that type has an implicit empty value.
list-new[col, elem] spec
list-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] spec
to output(a input)
Converts between two types.
copy[t] spec
copy t(a t)
Shallowly copies a mutable type.
data[t] spec builtin builtin
Requires the type to be immutable, meaning not mut or shared.
shared[t] spec builtin builtin
The type must be immutable or marked shared. In other words, the type can not be mut.
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)
new[t] t reference(value t)
get[t] t(a t reference)
set=[t] void(a t reference, value t)
java bool() global
True if this is a Java build. (This is the default.) In contexts where this is true (such as inside if java), you can call java functions.
js bool() global
True if this is a JavaScript build. In contexts where this is true (such as inside if js), you can call js functions.