»
list
list
Type Parameters
Functions
§(K type:property.hashable, f Unary K Sequence.T) => lock_free.Map K (Sequence Sequence.T) [Inherited from Sequence]
§
(K
type
:
property.hashable, f Unary K Sequence.T) =>
lock_free.Map K (Sequence Sequence.T) [Inherited from Sequence]
group the elements of this sequence by a key of type K
f determines the key of an element
f determines the key of an element
0.093dev (2025-05-13 15:50:27 GIT hash 38f965e14265a6f3ba3f96f18ddedb79352428af built by fridi@fzen)
list provides an abstract type for a sequence of elements of the same type.
A list sequence may be empty and contain no element, or it may have a fixed
or even an infinite number of elements.
The core of the implementation of an actual list lies in the implementation
of the actual Cons cell a non-empty list consists of.
Lists can typically be traversed using only immutable data. This makes them
more flexible than streams that require to store and update their state.
A list is immutable, so it can be reused and shared between threads.
Due to the nature of lists, in which many Cons cells are used, a list
may require more (heap) allocation than an array.