Skip to main content

Zymba Documentation

Array.Iterator​

object @Array.Iterator(@Base) {
construct(object $array) {}
hasMore(): bool {}
next(): object {}
reset(): $this {}
}

Array iterator prototype.

Prototype​

Base

Methods​

$this.construct(object $array): void
Parameters​
NameTypeValueDefault
arrayobject[]
$this.hasMore(): bool
Returns​
TypeValue
bool
$this.next(): object
Returns​
TypeValue
object[key: value]
null
$this.reset(): this
Returns​
TypeValue
$this