General-purpose Clojure functions.
General-purpose Clojure functions.
(remove-nil-values m)
Removes entries containing nil values from a map.
Removes entries containing nil values from a map.
(unique-by f s)
Returns a list of items in a sequence for which a function returns unique values. For example, to return a list of maps in a list with a unique :id field, you could run (unique-by :id map-list).
Returns a list of items in a sequence for which a function returns unique values. For example, to return a list of maps in a list with a unique :id field, you could run (unique-by :id map-list).
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |