Liking cljdoc? Tell your friends :D

locksmith.core


->cljclj/s

(->clj k type)
source

->gqlclj/s

(->gql k type)
source

clj->gqlclj/s

(clj->gql schema type & [{:keys [aliases]}])
source

clj?clj/s

(clj? k _)
source

for-mapclj/s≠macro

clj
(for-map seq-exprs key-expr val-expr)
(for-map m-sym seq-exprs key-expr val-expr)
cljs
(for-map &form &env seq-exprs key-expr val-expr)
(for-map &form &env m-sym seq-exprs key-expr val-expr)

Like 'for' for building maps. Same bindings except the body should have a key-expression and value-expression. If a key is repeated, the last value (according to "for" semantics) will be retained. (= (for-map [i (range 2) j (range 2)] [i j] (even? (+ i j))) {[0 0] true, [0 1] false, [1 0] false, [1 1] true}) An optional symbol can be passed as a first argument, which will be bound to the transient map containing the entries produced so far.

Like 'for' for building maps. Same bindings except the body should have a
key-expression and value-expression. If a key is repeated, the last
value (according to "for" semantics) will be retained.
(= (for-map [i (range 2) j (range 2)] [i j] (even? (+ i j)))
   {[0 0] true, [0 1] false, [1 0] false, [1 1] true})
An optional symbol can be passed as a first argument, which will be
bound to the transient map containing the entries produced so far.
source (clj)source (cljs)raw docstring

gql->cljclj/s

(gql->clj schema type & [{:keys [aliases]}])
source

gql?clj/s

(gql? k type)
source

map-valsclj/s

(map-vals f m)

Build map k -> (f v) for [k v] in map, preserving the initial type

Build map k -> (f v) for [k v] in map, preserving the initial type
sourceraw docstring

merge-aliasesclj/s

(merge-aliases objects aliases)

Create objects named as aliases, copied from object definitions that they alias

Create objects named as aliases, copied from object definitions that they alias
sourceraw docstring

rename-keyclj/s

(rename-key {:keys [from to]} path [k {:keys [type]}])
source

renamersclj/s

(renamers schema type-key converter)
(renamers schema type-key converter aliases)
source

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

× close