Liking cljdoc? Tell your friends :D

compojure.api.common


extract-parametersclj

(extract-parameters c expect-body)

Extract parameters from head of the list. Parameters can be:

  1. a map (if followed by any form) [{:a 1 :b 2} :body] => {:a 1 :b 2}
  2. list of keywords & values [:a 1 :b 2 :body] => {:a 1 :b 2}
  3. else => {}

Returns a tuple with parameters and body without the parameters

Extract parameters from head of the list. Parameters can be:

1. a map (if followed by any form) `[{:a 1 :b 2} :body]` => `{:a 1 :b 2}`
2. list of keywords & values `[:a 1 :b 2 :body]` => `{:a 1 :b 2}`
3. else => `{}`

Returns a tuple with parameters and body without the parameters
sourceraw docstring

fast-map-mergeclj

(fast-map-merge x y)
source

fifo-memoizeclj

(fifo-memoize f size)
source

group-withclj

(group-with pred coll)

Groups a sequence with predicate returning a tuple of sequences.

Groups a sequence with predicate returning a tuple of sequences.
sourceraw docstring

merge-vectorclj

(merge-vector v)

Merges vector elements, optimized for 1 arity (x10 faster than merge).

Merges vector elements, optimized for 1 arity (x10 faster than merge).
sourceraw docstring

plain-map?clj

(plain-map? x)

checks whether input is a map, but not a record

checks whether input is a map, but not a record
sourceraw docstring

when-nsclj/smacro

(when-ns ns & body)
source

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

× close