(actual-pattern expression)
constructs a pattern used for direct comparison
(actual-pattern '_)
(actual-pattern #{1 2 3})
constructs a pattern used for direct comparison (actual-pattern '_) (actual-pattern #{1 2 3})
(actual-pattern? pattern)
(actual-pattern? pattern expression)
checks if input is an actual pattern
(actual-pattern? '_) => false
(-> (actual-pattern '_) actual-pattern?) => true
checks if input is an actual pattern (actual-pattern? '_) => false (-> (actual-pattern '_) actual-pattern?) => true
(eval-pattern expression)
constructs a pattern that is evaluated before comparison
(eval-pattern '(keyword "a"))
(eval-pattern 'symbol?)
constructs a pattern that is evaluated before comparison (eval-pattern '(keyword "a")) (eval-pattern 'symbol?)
(eval-pattern? pattern)
(eval-pattern? pattern expression)
checks if input is an eval pattern
(-> (eval-pattern 'symbol?) eval-pattern?) => true
checks if input is an eval pattern (-> (eval-pattern 'symbol?) eval-pattern?) => true
(match-inner template arr)
matches the inner contents of a array
(match-inner [number? {:a {:b #'symbol?}} '& '_] [1 {:a {:b 'o}} 5 67 89 100]) => true
matches the inner contents of a array (match-inner [number? {:a {:b #'symbol?}} '& '_] [1 {:a {:b 'o}} 5 67 89 100]) => true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close