Iterable
trait Iterable[t: Type]SourceTrait for types that can be iterated.
Instances are immutable data structures.
Associated Types
type Aef: Eff = {}SourceThe associated effect of creating the Iterable and accessing the elements in the underlying data structure or generator.
The effect is embedded in the type of the Iterator.
type Elm: TypeSourceThe element type of the Iterable.
Instances
- Primitives
Array[a, r1], Vector[a]- Non-primitives
Chain[a], List[a], Map[k, v], MutDeque[a, r1], MutHashMap[k, v, r1], MutHashSet[a, r1], MutList[a, r1], MutMap[k, v, r1], MutPriorityQueue[a, r1], MutSet[a, r1], Nec[a], Nel[a], Option[a], Range[t], RedBlackTree[k, v], Set[a]
Signatures
def iterator(rc: Region[r], t: t): Iterator[Iterable.Elm[t], { aef, Read[r], Write[r] }, r] \ { aef, Write[r] } with Iterable[t] where Iterable.Aef[t] ~ aef§ SourceReturns an iterator over t.