Matchers defined in this namespace are not available during bootstrap.
Because of that, they do have access to all of the features of the library.
Matchers defined in this namespace are not available during bootstrap. Because of that, they do have access to all of the features of the library.
(match-*set [_ item] comp-env)
Create a ?:*set matcher than matches all of the items in a set.
Create a ?:*set matcher than matches all of the items in a set.
(match-closed [_ pattern] comp-env)
Maps and sets inside this block are matched 'closed', meaning they may only have the elements referenced by the matcher.
Setting this allows maps and sets that have no matchers inside them to be matched as literal values.
Maps and sets inside this block are matched 'closed', meaning they may only have the elements referenced by the matcher. Setting this allows maps and sets that have no matchers inside them to be matched as literal values.
(match-open [_ pattern] comp-env)
Maps and sets inside this block are matched 'open', meaning they may have extra elements not referenced by the matcher.
This is the default behavior. It is present onl y to allow patterns inside a closed matcher to be reopened.
Maps and sets inside this block are matched 'open', meaning they may have extra elements not referenced by the matcher. This is the default behavior. It is present onl y to allow patterns inside a closed matcher to be reopened.
(match-set [t & items :as pattern] comp-env)
(match-set-has [_ item] comp-env)
Create a ?:set-has matcher than can match an item in a set.
Create a ?:set-has matcher than can match an item in a set.
(match-set-literal the-set comp-env)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close