Liking cljdoc? Tell your friends :D

b2w-commons-collections.clean

Collection cleaning helpers.

Collection cleaning helpers.
raw docstring

filter-not-nilclj

(filter-not-nil coll)

Filters and returns only non nil elements of a list.

Filters and returns only non nil elements of a list.
raw docstring

remove-empty-entriesclj

(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}.
raw docstring

remove-nilsclj

(remove-nils data)

Returns the given data structure without nil values.

Returns the given data structure without nil values.
raw docstring

remove-nils-from-mapclj

(remove-nils-from-map map-data)

Returns the given map without nil key-value pairs.

Returns the given map without nil key-value pairs.
raw docstring

remove-nils-from-sequenceclj

(remove-nils-from-sequence sequence)

Returns the given sequence without nil values.

Returns the given sequence without nil values.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close