[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ ? ]

### 10.2.7 List searching

Function: find pred clist
[SRFI-1] Applies pred for each element of clist, from left to right, and returns the first element that pred returns true on.

Function: find-tail pred clist
[SRFI-1] Applies pred for each element of clist, from left to right, and when pred returns a true value, returns the pair whose car is the element.

Function: take-while pred clist
Function: take-while! pred list
[SRFI-1] Returns the longest initial prefix of clist whose elements all satisfy pred.

Function: drop-while pred clist
[SRFI-1] Drops the longest initial prefix of clist whose elements all satisfy pred, and returns the rest.

Function: span pred clist
Function: span! pred list
Function: break pred clist
Function: break! pred list
[SRFI-1] `span` is equivalent to `(values (take-while pred clist) (drop-while pred clist))`. `break` inverts the sense of pred.

Function: any pred clist1 clist2 ...
[SRFI-1] Applies pred across each element of clists, and returns true if any application of pred returns true. The returned value is the true value pred returned.

Function: every pred clist1 clist2 ...
[SRFI-1] Applies pred across each element of clists, and returns true if every application of pred returns true. If all applications returns a true value until one of the lists is exhausted, `every` returns the value the last pred returned.

Function: list-index pred clist1 clist2 ...
[SRFI-1] Returns the index of the leftmost element that satisfies pred.

Function: member\$ item
Function: find\$ pred
Function: find-tail\$ pred
Function: any\$ pred
Function: every\$ pred
Partial application version of `member`, `find`, `find-tail`, `any` and `every`.

 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ ? ]

This document was generated by Ken Dickey on November, 28 2002 using texi2html