(args->nested-2args op args)
Helper used to make variadic functions,when corresponding mongo operator takes 2 args makes (op args) to many nested 2 arg (op (op arg1 arg2) arg3) ...
Helper used to make variadic functions,when corresponding mongo operator takes 2 args makes (op args) to many nested 2 arg (op (op arg1 arg2) arg3) ...
(cmql-var? e)
cmql var = :myvar. :myvar.afield. OR :.myvar :.myvar.afield The second is used mostly in paths to avoid forgeting the .
cmql var = :myvar. :myvar.afield. OR :.myvar :.myvar.afield The second is used mostly in paths to avoid forgeting the .
(single-maps ms)
(single-maps ms keys-to-seperate)
Makes all map members to have max 1 pair,and key to be keyword(if not starts with $) on those single maps. [{:a 1 :b 2} 20 {'c' 3} [1 2 3]] => [{:a 1} {:b 2} 20 {:c 3} [1 2 3]] It is used from read-write/project/add-fields In commands its needed ONLY when i want to seperate command options from extra command args. (if i only need command to have keywords i use command-keywords function)
Makes all map members to have max 1 pair,and key to be keyword(if not starts with $) on those single maps. [{:a 1 :b 2} 20 {'c' 3} [1 2 3]] => [{:a 1} {:b 2} 20 {:c 3} [1 2 3]] It is used from read-write/project/add-fields In commands its needed ONLY when i want to seperate command options from extra command args. (if i only need command to have keywords i use command-keywords function)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close