chickadee » srfi-1 » drop-while

drop-while pred clistprocedure

Drops the longest initial prefix of CLIST whose elements all satisfy the predicate PRED, and returns the rest of the list.

(drop-while even? '(2 18 3 10 22 9)) => (3 10 22 9)

The circular-list case may be viewed as "rotating" the list.