(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |