VIEW search

view search prop value

Search for a row in view where the property prop has value value. Return the integer index of that row, if found. If no such row, return -1. An error is raised if value is not a valid value for the property prop.

The search is perform via a binary search algortihm, which only works if the rows of view are sorted by the values of property prop. It is up to the caller to verify this property of the view, but when it is true, the search will be considerably faster than other methods of pulling out a particular row.

DGP