Functions and macros from Clojure.core
Popularity (by total correct streak): 18
Popularity (by number of users): 1
(mapcat f & colls) | Returns the result of applying concat to the result of applying map to f and colls. Thus function f should return a collection. | (revised) |
(distinct coll) | Returns a lazy sequence of the elements of coll with duplicates removed | |
(split-with pred coll) | Returns a vector of [(take-while pred coll) (drop-while pred coll)] | |
(seque s) (seque n-or-q s) | Creates a queued seq on another (presumably lazy) seq s. The queued seq will produce a concrete seq in the background, and can get up to n items ahead of the consumer. n-or-q can be an integer n buffer size, or an instance of java.util.concurrent BlockingQueue. Note that reading from a seque can block if the reader gets ahead of the producer. | |
(not-every? pred coll) | Returns false if (pred x) is logical true for every x in | |
(some pred coll) | Returns the first logical true value of (pred x) for any x in coll, else nil. One common idiom is to use a set as pred, for example this will return :fred if :fred is in the sequence, otherwise nil: (some #{:fred} coll) |
Quisition is a browser-based flashcard system that repeats old cards and introduces new ones at optimal time intervals. You can create your own card packs or use those developed by others.