(conditional on test & clauses)
Match test with a number of paired clauses. If test matches the first element of a pair, return the second element.
Match test with a number of paired clauses. If test matches the first element of a pair, return the second element.
(in data verb & fields)
Retrieve data from a map. Symbols in fields are converted to keyword keys. if verb is 'get', dive through the map as get-in. if verb is 'find-each', return each location from the map. a location can be given as a sequence, in which case the sequence acts like a get-in on the map. if verb is 'extract', return the same location from each element of a sequence. (in data find foo bar) => (get-in data [:foo :bar]) (in data find-each (foo bar) baz) => (map #(get-in data %) '([:foo :bar] [:baz]) ) (in data extract foo bar) => (map #(get-in % [:foo :bar]) data)
Retrieve data from a map. Symbols in fields are converted to keyword keys. if verb is 'get', dive through the map as get-in. if verb is 'find-each', return each location from the map. a location can be given as a sequence, in which case the sequence acts like a get-in on the map. if verb is 'extract', return the same location from each element of a sequence. (in data find foo bar) => (get-in data [:foo :bar]) (in data find-each (foo bar) baz) => (map #(get-in data %) '([:foo :bar] [:baz]) ) (in data extract foo bar) => (map #(get-in % [:foo :bar]) data)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close