Liking cljdoc? Tell your friends :D

com.wsscode.pathom.misc


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

INCLUDE_SPECSclj/s

source (clj)source (cljs)

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

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

pathom-random-uuidclj/s

(pathom-random-uuid)
source

queueclj/s

(queue)
(queue coll)

Create a queue.

Create a queue.
sourceraw docstring

sconjclj/s

source

vconjclj/s

source

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

× close