(rontolisp) docs
← Seqs

take-while

(take-while pred coll) / (take-while pred)

Answers the strict prefix of coll's seq view while pred stays truthy (false stops, like nil). As a value a two-argument lambda.

(take-while pred) is its transducer, as a value too.