(characterise-filter ft)characterises a filter based on type
(characterise-filter "src") => (just {:tag :pattern :pattern #"src"})
(characterise-filter (fn [_] nil)) => (just {:tag :fn :fn fn?})
characterises a filter based on type
(characterise-filter "src")
=> (just {:tag :pattern :pattern #"src"})
(characterise-filter (fn [_] nil))
=> (just {:tag :fn :fn fn?})(pattern s)takes a string as turns it into a regex pattern
(pattern ".clj") => #"\Q.\Eclj"
(pattern "src/*") => #"src/.+"
takes a string as turns it into a regex pattern (pattern ".clj") => #"\Q.\Eclj" (pattern "src/*") => #"src/.+"
(tag-filter m)adds a tag to the filter to identify the type
(tag-filter {:pattern #"hello"}) => (just {:tag :pattern :pattern #"hello"})
adds a tag to the filter to identify the type
(tag-filter {:pattern #"hello"})
=> (just {:tag :pattern
:pattern #"hello"})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 |