Functions for working with linear lists, which are optimized for linear use, rather than efficient forking.
Functions for working with linear lists, which are optimized for linear use, rather than efficient forking.
(clear xs)
Clears the contents of a linear list.
Clears the contents of a linear list.
(linear-list)
(linear-list capacity)
Constructs a new linear list. Optionally takes a capacity.
Constructs a new linear list. Optionally takes a capacity.
(pop-first xs)
Removes and returns the first element of the list.
Removes and returns the first element of the list.
(pop-last xs)
Removes and returns the last element of the list.
Removes and returns the last element of the list.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close