The assoc and dissoc functions make use of the Associative protocol, for
functional updates (often just copy-on-write) of various associative data
structures. Associative is implemented for:
Piglet:
dictset
JavaScript:
nulljs:Array(indexed access)js:Objectjs:Set
The conj function make use of the Conjable protocol, for functionally adding
one or more elements to a collection. Conjable is implemented for:
Piglet:
dictsetconslistContextRangeRepeat
JavaScript:
nulljs:Arrayjs:Objectjs:Setjs:Map
Note that more things than these listed can be counted with count, but they
require walking a sequence.
Functions:
count
Piglet:
listdictsetrepeatrange
JavaScript:
js:Arrayjs:Mapjs:Set
Functions
-
deref,@ -
Var -
Box