Concatenates this with c
in O(1) runtime.
Alias for cons.
Alias for snoc.
Returns a new catenable consisting of a
followed by this.
Returns a new catenable consisting of a
followed by this. O(1) runtime.
Folds over the elements from left to right using the supplied initial value and function.
Applies the supplied function to each element, left to right.
Returns true if there are no elements in this collection.
Applies the supplied function to each element and returns a new catenable.
Returns a new catenable consisting of this followed by a
.
Returns a new catenable consisting of this followed by a
. O(1) runtime.
Converts to a list.
Returns the head and tail of this catenable if non empty, none otherwise.
Returns the head and tail of this catenable if non empty, none otherwise. Amortized O(1).
Deprecated alias for cons.
Deprecated alias for cons.
(Since version Use cons or +: instead) 0.9.3
Deprecated alias for cons.
Deprecated alias for cons.
(Since version Use cons or +: instead) 0.9.3
(Since version Use toList instead) 0.9.3
Trivial catenable sequence. Supports O(1) append, and (amortized) O(1)
uncons
, such that walking the sequence via N successiveuncons
steps takes O(N). Like a difference list, conversion to aSeq[A]
takes linear time, regardless of how the sequence is built up.