ForEach
trait ForEach[t: Type]
SourceA trait for data structures that support a forEach operation.
Associated Types
type Aef: Eff
SourceThe effect of forEach
.
type Elm: Type
SourceThe type of elements in the data structure.
Instances
Signatures
Module Definitions
def withFilter(p: a -> Bool, m: t): WithFilter[t, a] with ForEach[t] where ForEach.Elm[t] ~ a
SourceReturns a view for m
that filters out elements that don't match p
.
Returns a view for m
that wraps each element with its index.
Returns a view for m
that applies f
to each element.