Liking cljdoc? Tell your friends :D

com.wsscode.misc.coll


dedupe-byclj/s

(dedupe-by f)
(dedupe-by f coll)

Returns a lazy sequence removing consecutive duplicates in coll when passed to a function f. Returns a transducer when no collection is provided.

Returns a lazy sequence removing consecutive duplicates in coll when passed to a function f.
Returns a transducer when no collection is provided.
sourceraw docstring

distinct-byclj/s

(distinct-by f)
(distinct-by f coll)

Returns a lazy sequence of the elements of coll, removing any elements that return duplicate values when passed to a function f.

Returns a lazy sequence of the elements of coll, removing any elements that
return duplicate values when passed to a function f.
sourceraw docstring

filter-keysclj/s

(filter-keys f m)
source

filter-valsclj/s

(filter-vals f m)
source

index-byclj/s

(index-by f coll)

Like group by, but will keep only the last result.

Like group by, but will keep only the last result.
sourceraw docstring

keys-setclj/s

(keys-set m)

Return the map keys, as a set. This also checks if the entry is a map, otherwise returns nil (instead of throw).

Return the map keys, as a set. This also checks if the entry is a map, otherwise
returns nil (instead of throw).
sourceraw docstring

make-map-entryclj/s

(make-map-entry k v)

CLJC helper to create MapEntry.

CLJC helper to create MapEntry.
sourceraw docstring

map-keysclj/s

(map-keys f m)

Map over the given hash-map keys.

Example: (map-keys #(str/replace (name %) "_" "-") {"foo_bar" 1}) => {"foo-bar" 1}

Map over the given hash-map keys.

Example:
  (map-keys #(str/replace (name %) "_" "-") {"foo_bar" 1}) => {"foo-bar" 1}
sourceraw docstring

map-valsclj/s

(map-vals f m)

Map over the given hash-map vals.

Example: (map-vals inc {:a 1 :b 2})

Map over the given hash-map vals.

Example:
  (map-vals inc {:a 1 :b 2})
sourceraw docstring

merge-defaultsclj/s

(merge-defaults m defaults)

Like merge, but only add keys that are not present in the original map.

Like merge, but only add keys that are not present in the original map.
sourceraw docstring

merge-defaults*clj/s

(merge-defaults* a)
(merge-defaults* a _b)
source

merge-growclj/s

(merge-grow)
(merge-grow a)
(merge-grow a b)

Additive merging.

When merging maps, it does a deep merge. When merging sets, makes a union of them.

When value of the right side is nil, the left side will be kept.

For the rest works as standard merge.

Additive merging.

When merging maps, it does a deep merge.
When merging sets, makes a union of them.

When value of the right side is nil, the left side will be kept.

For the rest works as standard merge.
sourceraw docstring

native-map?clj/s

(native-map? x)
source

queueclj/s

(queue)
(queue coll)

Return a blank immutable queue or create one from coll.

Return a blank immutable queue or create one from coll.
sourceraw docstring

remove-keysclj/s

(remove-keys f m)
source

remove-valsclj/s

(remove-vals f m)
source

sconjclj/s

source

vconjclj/s

source

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

× close