Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / Set / iterator

Set.iterator

Method

Set<T>.iterator() -> SetIterator<T> where T: Equatable

Creates an independent cursor over this set.

The cursor initially points at the set's first occupied backing slot.

Effects: allocates

Runtime behavior: available everywhere; synchronous

Examples

Iterate a set manually

let values = Set.new<String>()
let iterator = values.iterator()
Generated from the SplitScript compiler's documentation catalogs.