Collection cleaning helpers.
Collection cleaning helpers.
(filter-not-nil coll)
Filters and returns only non nil elements of a list.
Filters and returns only non nil elements of a list.
(remove-empty-entries mp map-key)
Returns the given map without the map-key if the value is empty, or the same map otherwise.
Can also be used with map-entry as the map-key: (reduce remove-empty-entries {} {:a 1 :b nil :c []}) Will produce: {:a 1}.
Returns the given map without the map-key if the value is empty, or the same map otherwise. Can also be used with map-entry as the map-key: (reduce remove-empty-entries {} {:a 1 :b nil :c []}) Will produce: {:a 1}.
(remove-nils data)
Returns the given data structure without nil values.
Returns the given data structure without nil values.
(remove-nils-from-map map-data)
Returns the given map without nil key-value pairs.
Returns the given map without nil key-value pairs.
(remove-nils-from-sequence sequence)
Returns the given sequence without nil values.
Returns the given sequence without nil values.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close