Liking cljdoc? Tell your friends :D

pattern.matchers.set

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

match-*setclj

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

match-closedclj

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

match-openclj

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

match-setclj

(match-set [t & items :as pattern] comp-env)

match-set-hasclj

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

match-set-literalclj

(match-set-literal the-set comp-env)

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

× close