Method Iterator()->create()
- Method
create
Iterator Iterator(
void
|mixed
data
)- Description
Initialize this iterator to access a data set in
data
. The type ofdata
is specific to the iterator implementation. An iterator may also access some implicit data set, in which casedata
isn't specified at all.The iterator initially points to before the first item in the data set, if there is any.
The iterator does not need to support being reused, so this function is typically declared
protected
.- Note
In the iterator API in Pike 8.0 and earlier the iterators initially pointed to the first element.
- See also