Skip to main content

to-source

multimethod

clojure.core.match/to-source

Returns a Clojure form that, when executed, is truthy if the pattern matches the occurrence. Dispatches on the `type` of the pattern. For instance, a literal pattern might return `(= ~(:pattern pattern) ~ocr)`, using `=` to test for a match.

No examples yet. Be the first to add one!