alias for concat
alias for foldLeft
alias for foldRight
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 as
-wise, and the final C
acquired by a stateful right fold over as
.
Unlike stdlib's version, this is total and simply ignores indices that are out of range
Safe, invariant alternative to stdlib
List
. Most methods onList
have a sensible equivalent here, either on theIList
interface itself or via typeclass instances (which are the same as those defined for stdlibList
). All methods are total and stack-safe.