Internal implementation of the MBQL match and replace macros. Don't use these directly.
Internal implementation of the MBQL `match` and `replace` macros. Don't use these directly.
(match form patterns-and-results)Internal impl for match. Generate a pattern-matching function using core.match, and call it with form.
Internal impl for `match`. Generate a pattern-matching function using `core.match`, and call it with `form`.
(match-in-collection match-fn clause-parents form)Internal impl for match. If form is a collection, call match-fn to recursively look for matches in it.
Internal impl for `match`. If `form` is a collection, call `match-fn` to recursively look for matches in it.
(match-with-pred-or-class pred-or-class)Return a function to use for pattern matching via core.match's :guard functionality based on the value of a
pred-or-class passed in as a pattern to match or replace.
Return a function to use for pattern matching via `core.match`'s `:guard` functionality based on the value of a `pred-or-class` passed in as a pattern to `match` or `replace`.
(replace form patterns-and-results)Internal implementation for replace. Generate a pattern-matching function with core.match, and use it to replace
matching values in form.
Internal implementation for `replace`. Generate a pattern-matching function with `core.match`, and use it to replace matching values in `form`.
(replace-in-collection replace-fn clause-parents form)Inernal impl for replace. Recursively replace values in a collection using a replace-fn.
Inernal impl for `replace`. Recursively replace values in a collection using a `replace-fn`.
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 |