(extract-parameters c expect-body)
Extract parameters from head of the list. Parameters can be:
[{:a 1 :b 2} :body]
=> {:a 1 :b 2}
[:a 1 :b 2 :body]
=> {:a 1 :b 2}
{}
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
(group-with pred coll)
Groups a sequence with predicate returning a tuple of sequences.
Groups a sequence with predicate returning a tuple of sequences.
(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).
(plain-map? x)
checks whether input is a map, but not a record
checks whether input is a map, but not a record
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close