Liking cljdoc? Tell your friends :D

b2w-commons-collections.clean

Collection cleaning helpers.

Collection cleaning helpers.

filter-not-nil

(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-entries

(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-nils

(remove-nils data)

Returns the given data structure without nil values.

Returns the given data structure without nil values.
raw docstring

remove-nils-from-map

(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-sequence

(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