- itake-while pred ilistprocedure
Returns the longest initial prefix of ilist whose elements all satisfy the predicate pred.
(itake-while even? (iq 2 18 3 10 22 9)) ;=> (2 18)
Returns the longest initial prefix of ilist whose elements all satisfy the predicate pred.
(itake-while even? (iq 2 18 3 10 22 9)) ;=> (2 18)