Skip to main content

spread_item

Function spread_item 

Source
pub fn spread_item<A: IVm>(v: Any<A>) -> Result<ArrayItem<A>, Any<A>>
Expand description

A spread item, ...b in [a, ...b]. Take its iterator before the next operand is evaluated: generated item lists propagate this Result with ? at the item’s position. Iteration itself cannot throw or run represented code for the VM’s immutable arrays and strings (IteratorRecord).