Extracted from Pike v8.0 release 164 as of 2016-02-09.
   

Method ADT.CircularList()->_search()


Method _search

int search(ADT.CircularList from, mixed value, void|int start)

Description

Search the list for a specific value. Return the index of the first value that is equal to value. If no value was found UNDEFINED is returned instead

Parameter value

The value to find

Parameter start

If a start value is supplied it will start searching at the index start.

Returns

Returns the index of the found value or UNDEFINED.

Throws

An error if the start is out of range.