Collections
Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Java Collect...
functionclojure.core
Returns an empty collection of the same category as coll, or nil
functionclojure.core
Returns the map entry for key, or nil if key not present.
functionclojure.core
Return `zloc` located to the first node satisfying predicate `p?` else nil. Search starts at the current node and con...
functionrewrite-clj.zip
Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil.
functionclojure.core
- function
babashka.curl
Convenience wrapper for `request` with method `:get`
functionbabashka.http-client
Returns the value mapped to key, not-found or nil if key not present in associative collection, set, string, array, or...
functionclojure.core
Issues an async HTTP GET request. See `request` for details.
functionorg.httpkit.client
Returns `zloc` located to map key node's sexpr value matching `k` else `nil`. `k` should be: - a key for maps - a...
functionrewrite-clj.zip
Returns the value in a nested associative structure, where ks is a sequence of keys. Returns nil if the key is not p...
functionclojure.core
Returns the key of the map entry.
functionclojure.core
Returns a sequence of the map's keys, in the same order as (seq map).
functionclojure.core
Return the last item in coll, in linear time
functionclojure.core
Returns a seq of the items after the first. Calls seq on its argument. If there are no more items, returns nil.
functionclojure.core
Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via...
functionclojure.zip
Return zipper with location moved to the next depth-first non-whitespace/non-comment node in `zloc`. End can be detec...
functionrewrite-clj.zip
Returns the value at the index. get returns nil if index out of bounds, nth throws an exception unless not-found is su...
functionclojure.core
For a list or queue, same as first, for a vector, same as, but much more efficient than, last. If the collection is em...
functionclojure.core
Returns a possibly empty seq of the items after the first. Calls seq on its argument.
functionclojure.core
Same as (first (next x))
functionclojure.core
Returns a seq on the collection. If the collection is empty, returns nil. (seq nil) returns nil. seq also works on ...
functionclojure.core
Create a lazy-seq of all of the (unique) nodes in a shrink-tree. This assumes that two nodes with the same value have ...
functionclojure.test.check.rose-tree
Coerces coll to a (possibly empty) sequence, if it is not already one. Will not force a lazy seq. (sequence nil) yield...
functionclojure.core
Returns the value in the map entry.
functionclojure.core
Returns a sequence of the map's values, in the same order as (seq map).
functionclojure.core
Creating
24Constructs an array-map. If any keys are equal, they are handled as if by repeated uses of assoc.
functionclojure.core
Returns a lazy (infinite!) sequence of repetitions of the items in coll.
functionclojure.core
keyval => key val Returns a new hash map with supplied mappings. If any keys are equal, they are handled as if by r...
functionclojure.core
Like clojure.core/hash-map, except the values are generators. Returns a generator that makes maps with the supplied k...
functionclojure.test.check.generators
Returns a new hash set with supplied keys. Any equal keys are handled as if by repeated uses of conj.
functionclojure.core
Returns a lazy (infinite!) sequence of x, (f x), (f (f x)) etc. f must be free of side-effects
functionclojure.core
Takes a body of expressions that returns an ISeq or nil, and yields a Seqable object that will invoke the body only th...
macroclojure.core
Creates a new list containing the items.
functionclojure.core
Like `vector`, but generates lists.
functionclojure.test.check.generators
Creates a new seq containing the items prepended to the rest, the last of which will be treated as a sequence.
functionclojure.core
Returns a lazy seq of nums from start (inclusive) to end (exclusive), by step, where start defaults to 0, step to 1, a...
functionclojure.core
Returns a lazy (infinite!, or length n if supplied) sequence of xs.
functionclojure.core
Takes a function of no args, presumably with side effects, and returns an infinite (or length n if supplied) lazy sequ...
functionclojure.core
Returns a set of the distinct elements of coll.
functionclojure.core
Generates a set of elements from the given generator. If the generator cannot or is unlikely to produce enough distin...
functionclojure.test.check.generators
keyval => key val Returns a new sorted map with supplied mappings. If any keys are equal, they are handled as if by...
functionclojure.core
keyval => key val Returns a new sorted map with supplied mappings, using the supplied comparator. If any keys are e...
functionclojure.core
Returns a new sorted set with supplied keys. Any equal keys are handled as if by repeated uses of conj.
functionclojure.core
Generates a sorted set of elements from the given generator. If the generator cannot or is unlikely to produce enough...
functionclojure.test.check.generators
Returns a new sorted set with supplied keys, using the supplied comparator. Any equal keys are handled as if by repea...
functionclojure.core
Creates a new vector containing the contents of coll. Java arrays will be aliased and should not be modified.
functionclojure.core
Creates a new vector containing the args.
functionclojure.core
Creates a generator of vectors whose elements are chosen from `generator`. The count of the vector will be bounded by ...
functionclojure.test.check.generators
Returns a map with the keys mapped to the corresponding vals.
functionclojure.core
assoc[iate]. When applied to a map, returns a new map of the same (hashed/sorted) type, that contains the mapping of...
functionclojure.core
Returns `zloc` with current node's `k` set to value `v`. `zloc` location is unchanged. `k` should be: - a key fo...
functionrewrite-clj.zip
Associates a value in a nested associative structure, where ks is a sequence of keys and v is the new value and return...
functionclojure.core
conj[oin]. Returns a new collection with the xs 'added'. (conj nil item) returns (item). (conj coll) returns col...
functionclojure.core
Returns a new seq where x is the first element and seq is the rest.
functionclojure.core
disj[oin]. Returns a new set of the same (hashed/sorted) type, that does not contain key(s).
functionclojure.core
dissoc[iate]. Returns a new map of the same (hashed/sorted) type, that does not contain a mapping for key(s).
functionclojure.core
For a list or queue, returns a new list/queue without the first item, for a vector, returns a new vector without the l...
functionclojure.core
'Updates' a value in an associative structure, where k is a key and f is a function that will take the old value and...
functionclojure.core
'Updates' a value in a nested associative structure, where ks is a sequence of keys and f is a function that will take...
functionclojure.core
Returns true if coll implements Associative
functionclojure.core
- function
clojure.core
Returns true if x implements IPersistentCollection
functionclojure.core
Returns true if key is present in the given collection, otherwise returns false. Note that for numerically indexed co...
functionclojure.core
Returns true if coll implements count in constant time
functionclojure.core
Returns true if no two of the arguments are =
functionclojure.core
Returns true if coll has no items. To check the emptiness of a seq, please use the idiom (seq x) rather than (not (emp...
functionclojure.core
Returns true if (pred x) is logical true for every x in coll, else false.
functionclojure.core
Return true if coll implements Indexed, indicating efficient lookup by index
functionclojure.core
Returns true if x implements IPersistentList
functionclojure.core
Returns true if current node in `zloc` is a list.
functionrewrite-clj.zip
Return true if x is a map entry
functionclojure.core
Return true if x implements IPersistentMap
functionclojure.core
Returns true if current node in `zloc` is a map.
functionrewrite-clj.zip
Returns false if (pred x) is logical true for any x in coll, else true.
functionclojure.core
If coll is empty, returns nil, else coll
functionclojure.core
Modifies a generator so that it doesn't generate empty collections. Examples: ;; generate a vector of booleans...
functionclojure.test.check.generators
Returns false if (pred x) is logical true for every x in coll, else true.
functionclojure.core
Returns true if x is a record
functionclojure.core
Returns true if coll implements Reversible
functionclojure.core
Return true if x implements ISeq
functionclojure.core
Returns true if current node in `zloc` is a sequence.
functionrewrite-clj.zip
Return true if the seq function is supported for x
functionclojure.core
Returns true if coll implements Sequential
functionclojure.core
Returns true if x implements IPersistentSet
functionclojure.core
Returns true if current node in `zloc` is a set.
functionrewrite-clj.zip
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 pre...
functionclojure.core
Returns true if coll implements Sorted
functionclojure.core
Return true if x implements IPersistentVector
functionclojure.core
Returns true if current node in `zloc` is a vector.
functionrewrite-clj.zip
Sets
12Return a set that is the first set without elements of the remaining sets
functionclojure.set
Returns a map of the distinct values of ks in the xrel mapped to a set of the maps in xrel with the corresponding valu...
functionclojure.set
Return a set that is the intersection of the input sets
functionclojure.set
When passed 2 rels, returns the rel corresponding to the natural join. When passed an additional keymap, joins on the ...
functionclojure.set
Returns the map with the vals mapped to the keys.
functionclojure.set
Returns a rel of the elements of xrel with only the keys in ks
functionclojure.set
Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmap
functionclojure.set
Returns the map with the keys in kmap renamed to the vals in kmap
functionclojure.set
Returns a set of the elements for which pred is true
functionclojure.set
Is set1 a subset of set2?
functionclojure.set
Is set1 a superset of set2?
functionclojure.set
Return a set that is the union of the input sets
functionclojure.set
Return a seq of all but the last item in coll, in linear time
functionclojure.core
A transducer which concatenates the contents of each input, which must be a collection, into the reduction.
functionclojure.core
Returns a lazy seq representing the concatenation of the elements in the supplied colls.
functionclojure.core
Returns a lazy sequence removing consecutive duplicates in coll. Returns a transducer when no collection is provided.
functionclojure.core
Returns a lazy sequence of the elements of coll with duplicates removed. Returns a stateful transducer when no collect...
functionclojure.core
When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce ...
functionclojure.core
When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce ...
functionclojure.core
Repeatedly executes body (presumably for side-effects) with bindings and filtering as provided by "for". Does not ret...
macroclojure.core
Returns a laziness-preserving sequence of all but the first n items in coll. Returns a stateful transducer when no col...
functionclojure.core
Return a lazy sequence of all but the last n (default 1) items in coll
functionclojure.core
Returns a lazy sequence of the items in coll starting from the first item for which (pred item) returns logical false....
functionclojure.core
Returns a reducible/iterable application of the transducers to the items in coll. Transducers are applied in order as ...
functionclojure.core
Returns a lazy sequence of the items in coll for which (pred item) returns logical true. pred must be free of side-eff...
functionclojure.core
Returns a new Rose tree whose values pass `pred`. Values who do not pass `pred` have their children cut out as well.
functionclojure.test.check.rose-tree
Returns a vector of the items in coll for which (pred item) returns logical true. pred must be free of side-effects.
functionclojure.core
Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat ...
functionclojure.core
List comprehension. Takes a vector of one or more binding-form/collection-expr pairs, each followed by zero or more ...
macroclojure.core
Returns a map from distinct items in coll to the number of times they appear.
functionclojure.core
Returns a map of the elements of coll keyed by the result of f on each element. The value at each key will be a vector...
functionclojure.core
Returns a lazy seq of the first item in each coll, then the second etc.
functionclojure.core
Returns a lazy seq of the elements of coll separated by sep. Returns a stateful transducer when no collection is provi...
functionclojure.core
Returns a new coll consisting of to with all of the items of from conjoined. A transducer may be supplied. (into x) ...
functionclojure.core
Returns a channel containing the single (collection) result of the items taken from the channel conjoined to the suppl...
functionclojure.core.async
Returns a lazy sequence of the non-nil results of (f item). Note, this means false return values will be included. f ...
functionclojure.core
Returns a lazy sequence of the non-nil results of (f index item). Note, this means false return values will be include...
functionclojure.core
Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by app...
functionclojure.core
Takes a function and a collection of source channels, and returns a channel which contains the values produced by appl...
functionclojure.core.async
Creates a generator that generates maps, with keys chosen from `key-gen` and values chosen from `val-gen`. If the k...
functionclojure.test.check.generators
Returns `zloc` with function `f` applied to all nodes of the current node. Current node must be a sequence node. Equiv...
functionrewrite-clj.zip
Returns a lazy sequence consisting of the result of applying f to 0 and the first item of coll, followed by applying f...
functionclojure.core
Returns the result of applying concat to the result of applying map to f and colls. Thus function f should return a c...
functionclojure.core
Returns a vector consisting of the result of applying f to the set of first items of each coll, followed by applying f...
functionclojure.core
Returns a map that consists of the rest of the maps conj-ed onto the first. If a key occurs in more than one map, the...
functionclojure.core
Takes a collection of source channels and returns a channel which contains all values taken from them. The returned ch...
functionclojure.core.async
Returns a map that consists of the rest of the maps conj-ed onto the first. If a key occurs in more than one map, the...
functionclojure.core
Returns the nth next of coll, (seq coll) when n is 0.
functionclojure.core
Returns the nth rest of coll, coll when n is 0.
functionclojure.core
Returns a lazy sequence of lists of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e. ...
functionclojure.core
Deprecated - this function will be removed. Use transducer instead
functionclojure.core.async
Returns a lazy sequence of lists like partition, but may include partitions with fewer than n items at the end. Retur...
functionclojure.core
Applies f to each value in coll, splitting it each time f returns a new value. Returns a lazy seq of partitions. Re...
functionclojure.core
Deprecated - this function will be removed. Use transducer instead
functionclojure.core.async
Returns items from coll with random probability of prob (0.0 - 1.0). Returns a transducer when no collection is provi...
functionclojure.core
f should be a function of 2 arguments. If val is not supplied, returns the result of applying f to the first 2 items i...
functionclojure.core
f should be a function of 2 arguments. Returns a channel containing the single result of applying f to init and the fi...
functionclojure.core.async
Reduces an associative collection. f should be a function of 3 arguments. Returns the result of applying f to init, th...
functionclojure.core
Returns a lazy seq of the intermediate values of the reduction (as per reduce) of coll by f, starting with init.
functionclojure.core
Returns a lazy sequence of the items in coll for which (pred item) returns logical false. pred must be free of side-ef...
functionclojure.core
- function
clojure.test.check.rose-tree
Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.
functionclojure.zip
Return `zloc` with current node removed. Returned zipper location is moved to the first non-whitespace node preceding...
functionrewrite-clj.zip
Given a map of replacement pairs and a vector/collection, returns a vector/seq with any elements = a key in smap repla...
functionclojure.core
Replaces all instance of match with replacement in s. match/replacement can be: string / string char / char ...
functionclojure.string
Replaces the node at this loc, without moving
functionclojure.zip
Return `zloc` with the current node replaced by `item`. If `item` is not already a node, an attempt will be made to co...
functionrewrite-clj.zip
Returns a seq of the items in coll in reverse order. Not lazy.
functionclojure.core
Returns s with its characters reversed.
functionclojure.string
Returns, in constant time, a seq of the items in rev (which can be a vector or sorted-map), in reverse order. If rev i...
functionclojure.core
sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a reverse seq of those entries with keys ek for...
functionclojure.core
sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a reverse seq of those entries with keys ek for...
functionclojure.data.priority-map
Runs the supplied procedure (via reduce), for purposes of side effects, on successive items in the collection. Returns...
functionclojure.core
Returns a map containing only those entries in map whose key is in keys
functionclojure.core
Return a random permutation of coll
functionclojure.core
Creates a generator that generates random permutations of `coll`. Shrinks toward the original collection: `coll`. `col...
functionclojure.test.check.generators
Returns a sorted sequence of the items in coll. If no comparator is supplied, uses compare. comparator must implement...
functionclojure.core
Returns a sorted sequence of the items in coll, where the sort order is determined by comparing (keyfn item). If no c...
functionclojure.core
Returns a vector of [(take n coll) (drop n coll)]
functionclojure.core
Returns a vector of [(take-while pred coll) (drop-while pred coll)]
functionclojure.core
sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a seq of those entries with keys ek for which...
functionclojure.core
sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a seq of those entries with keys ek for which...
functionclojure.data.priority-map
Returns a lazy sequence of the first n items in coll, or all items if there are fewer than n. Returns a stateful tran...
functionclojure.core
Returns a channel that will return, at most, n items from ch. After n items have been returned, or ch has been closed...
functionclojure.core.async
Returns a seq of the last n items in coll. Depending on the type of coll may be no better than linear time. For vect...
functionclojure.core
Returns a lazy seq of every nth item in coll. Returns a stateful transducer when no collection is provided.
functionclojure.core
Returns a lazy sequence of successive items from coll while (pred item) returns logical true. pred must be free of sid...
functionclojure.core
reduce with a transformation of f (xf). If init is not supplied, (f) will be called to produce it. f should be a reduc...
functionclojure.core
async/reduces a channel with a transformation (xform f). Returns a channel containing the result. ch must close befor...
functionclojure.core.async
Returns a lazy sequence of the nodes in a tree, via a depth-first walk. branch? must be a fn of one arg that returns ...
functionclojure.core
m f => {(f k) v ...} Given a map m and a function f of 1-argument, returns a new map whose keys are the result of a...
functionclojure.core
m f => {k (f v) ...} Given a map m and a function f of 1-argument, returns a new map where the keys of m are mapped...
functionclojure.core
A tree seq on the xml elements as per xml/parse
functionclojure.core
When applied to a transient map, adds mapping of key(s) to val(s). When applied to a transient vector, sets the val at...
functionclojure.core
Adds x to the transient collection, and return coll. The 'addition' may happen at different 'places' depending on the ...
functionclojure.core
disj[oin]. Returns a transient set of the same (hashed/sorted) type, that does not contain key(s).
functionclojure.core
Returns a transient map that doesn't contain a mapping for key(s).
functionclojure.core
Returns a new, persistent version of the transient collection, in constant time. The transient collection cannot be us...
functionclojure.core
Removes the last item from a transient vector. If the collection is empty, throws an exception. Returns coll
functionclojure.core
Returns a new, transient version of the collection, in constant time. Transients support a parallel set of 'changing'...
functionclojure.core