(pattern-seq pattern)
generate a sequence of possible matches (pattern-seq '(+ ^:? (1) ^:? (^:? + 2))) => '((+) (+ (1)) (+ (2)) (+ (1) (2)) (+ (+ 2)) (+ (1) (+ 2)))
generate a sequence of possible matches (pattern-seq '(+ ^:? (1) ^:? (^:? + 2))) => '((+) (+ (1)) (+ (2)) (+ (1) (2)) (+ (+ 2)) (+ (1) (+ 2)))
(tag-meta ele out)
increment a counter everytime a :?
element is seen
(let [out (atom {:? -1})]
(tag-meta ^:? () out)
@out)
=> {:? 0}
increment a counter everytime a `:?` element is seen (let [out (atom {:? -1})] (tag-meta ^:? () out) @out) => {:? 0}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close