Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在处理clojure中的序列。我想检索元素,直到谓词函数为真。我怎么做?
您可以take-while与not
take-while
not
user=> (take-while (comp not even?) [3 9 2 4 6 10 1 2]) (3 9)