Object type: Iterable
Distinct
Distinct Iterable type.
An object can make itself iterable by using *object:Iterable;
,
and then defining an iterator
method.
Methods
iterator | Create a new iterator. |
iterator
function iterator() returns object {
public function next() returns record {| any|error value; |}|error?;
}
Create a new iterator.
Return Type
(object { public function next() returns record {| any|error value; |}|error?; })a new iterator object