Safe, invariant alternative to stdlib List
. Most methods on List
have a sensible equivalent
here, either on the IList
interface itself or via typeclass instances (which are the same as
those defined for stdlib List
). All methods are total and stack-safe.
- Companion
- object
Value members
Concrete methods
Returns f
applied to contents if non-empty, otherwise the zero of B
.
Returns f
applied to contents if non-empty, otherwise the zero of B
.
All of the B
s, in order, and the final C
acquired by a stateful left fold over as
.
All of the B
s, in order, and the final C
acquired by a stateful left fold over as
.
All of the B
s, in order as
-wise, and the final C
acquired by a stateful right fold over as
.
All of the B
s, in order as
-wise, and the final C
acquired by a stateful right fold over as
.
Referentially transparent replacement for traverse, specialised to disjunction.
Referentially transparent replacement for traverse, specialised to disjunction.