ClojureDocs

导航

命名空间

take-while

clojure.core

自 1.0 起可用 (源代码)
  • (take-while pred)
  • (take-while pred coll)
Returns a lazy sequence of successive items from coll while
(pred item) returns logical true. pred must be free of side-effects.
Returns a transducer when no collection is provided.