(apply-template [k & rest])
applies the template
(= (apply-template [:s/norm :bench.stats.lag]) (list `/ :bench.stats.lag [:s/max :bench.stats.lag])) => true
applies the template (= (apply-template [:s/norm :bench.stats.lag]) (list `/ :bench.stats.lag [:s/max :bench.stats.lag])) => true
(compile m)
complies a map of expressions
(compile '{:diff (- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag])})
complies a map of expressions (compile '{:diff (- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag])})
(compile-aggregates aggregates)
compiles the aggregates
(compile-aggregates '{v1 [:s/max :bench.stats.lag]})
compiles the aggregates (compile-aggregates '{v1 [:s/max :bench.stats.lag]})
(compile-form form)
compiles the entire form
(compile-form '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag]))
compiles the entire form (compile-form '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag]))
(compile-keyword k)
compiles a single keyword
(compile-keyword :bench.stats.lag) => `(get ~'output (keyword "bench.stats.lag"))
compiles a single keyword (compile-keyword :bench.stats.lag) => `(get ~'output (keyword "bench.stats.lag"))
(compile-single compute)
complise a single fn form
(eval (compile-single '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag]))) => fn?
complise a single fn form (eval (compile-single '(- [:s/norm :bench.stats.time] [:s/norm :bench.stats.lag]))) => fn?
(compute arr exprs)
computes additional values given array
(-> (compute [{:start 10 :output.value 1} {:start 11 :output.value 4} {:start 12 :output.value 1} {:start 13 :output.value 6} {:start 14 :output.value 10.1}] {:t '(* :start 100000000) :t0 [:s/adj :t] :t1 [:s/inv :t0] :output.norm [:s/norm :output.value]}) first) => {:start 10, :output.value 1, :t 1000000000, :t0 0, :t1 400000000, :output.norm 0.09900990099009901}
computes additional values given array (-> (compute [{:start 10 :output.value 1} {:start 11 :output.value 4} {:start 12 :output.value 1} {:start 13 :output.value 6} {:start 14 :output.value 10.1}] {:t '(* :start 100000000) :t0 [:s/adj :t] :t1 [:s/inv :t0] :output.norm [:s/norm :output.value]}) first) => {:start 10, :output.value 1, :t 1000000000, :t0 0, :t1 400000000, :output.norm 0.09900990099009901}
(key-order m)
(key-order {:output.norm [:s/norm :output.value] :t1 [:s/inv :t0] :t0 [:s/adj :t] :t '(* :start 100000000)}) => [:t :t0 :t1 :output.norm]
(key-order {:output.norm [:s/norm :output.value] :t1 [:s/inv :t0] :t0 [:s/adj :t] :t '(* :start 100000000)}) => [:t :t0 :t1 :output.norm]
(key-references m)
finds all references for the expr map
(key-references {:t '(* :start 100000000) :t0 [:s/adj :t] :t1 [:s/inv :t0] :output.norm [:s/norm :output.value]}) => {:t #{}, :t0 #{:t}, :t1 #{:t0}, :output.norm #{}}
finds all references for the expr map (key-references {:t '(* :start 100000000) :t0 [:s/adj :t] :t1 [:s/inv :t0] :output.norm [:s/norm :output.value]}) => {:t #{}, :t0 #{:t}, :t1 #{:t0}, :output.norm #{}}
(middle-fn arr)
middling function
(middle-fn [1 2 3]) => 2
middling function (middle-fn [1 2 3]) => 2
(range-fn arr)
range function accepting array
range function accepting array
(template? [k & rest])
checks if vector is a template
(template? [:s/norm 1]) => true
checks if vector is a template (template? [:s/norm 1]) => true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close