Collectable
trait Collectable[t: Type]
SourceA trait representing collections that can be produced from an Iterator.
Associated Types
type Aef: Eff
SourceThe associated effect of the Collectable which represents the effect of accessing its elements.
type Elm: Type
SourceThe element type of the Collectable.
Instances
instance Collectable[Chain[a]]
Sourceinstance Collectable[List[a]]
Sourceinstance Collectable[Set[a]] with Order[a]
Sourceinstance Collectable[Vector[a]]
SourceSignatures
def collect(iter: Iterator[Elm[t], ef, r]): t \ ef + Aef[t] + r with Collectable[t]
SourceRun an Iterator collecting the results.