SplitScript reference / Language / Item
Item
syntax
Item(value)
Constructs a yielded iterator step.
Item infers T from its value and constructs IteratorStep<T>. Unlike Some, an item may itself contain None without ending iteration. Match it together with End.
Examples
Construct an iterator item step
let step: IteratorStep<i32> = Item(7)