Liking cljdoc? Tell your friends :D

metabase.mbql.util.match

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.
raw docstring

matchcljmacro

(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`.
sourceraw docstring

match-in-collectionclj

(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.
sourceraw docstring

match-with-pred-or-classclj

(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`.
sourceraw docstring

replacecljmacro

(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`.
sourceraw docstring

replace-in-collectionclj

(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`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close