(? & args)
(after ms f & args)
Call f asynchronously after ms milliseconds.
Call f asynchronously after ms milliseconds.
(alternating & colls)
Returns a lazy seq of the first item in each coll, then the second etc. Unlike interleave, does not stop early.
Returns a lazy seq of the first item in each coll, then the second etc. Unlike interleave, does not stop early.
(capitalize-name name)
Capitalize name if it is all lowercase.
Capitalize name if it is all lowercase.
(distinct-by keyfn coll)
Returns a lazy sequence of the elements of coll with duplicate keys removed.
Returns a lazy sequence of the elements of coll with duplicate keys removed.
(eq key val)
Returns a predicate that returns true when calling key on item returns val. This will commonly be used with a keyword for key (eq :name name), though that is not required.
Returns a predicate that returns true when calling key on item returns val. This will commonly be used with a keyword for key (eq :name name), though that is not required.
(first-index vector pred)
Returns the index of the first item in vector that matches pred.
Returns the index of the first item in vector that matches pred.
(index-by f coll)
Returns a map from the result of calling f on each item in coll to that item.
Returns a map from the result of calling f on each item in coll to that item.
(last-index vector pred)
Returns the index of the last item in vector that matches pred.
Returns the index of the last item in vector that matches pred.
(neq key val)
(remove-last vector pred)
Remove the last item in vector that matches pred.
Remove the last item in vector that matches pred.
(removev f coll)
(replace-first vector pred item)
Replace the first item in vector that matches pred with item.
Replace the first item in vector that matches pred with item.
(replace-last vector pred item)
Replace the last item in vector that matches pred with item.
Replace the last item in vector that matches pred with item.
(split-on pred coll)
Split the given collection on the first item for which pred returns true. Returns [head-vector tail-seq]
Split the given collection on the first item for which pred returns true. Returns [head-vector tail-seq]
(truncate-string string num)
(truncate-string string num ellipsis)
(truncate-string-on-words string num)
(truncate-string-on-words string num ellipsis)
(update-each m keys f)
Adjust values for the given keys in m by calling f. This is painfully similar to useful's update-each, except that it doesn't call the function if the item is missing from the map.
Adjust values for the given keys in m by calling f. This is painfully similar to useful's update-each, except that it doesn't call the function if the item is missing from the map.
(user-initials user)
(user-name user)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close