Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.match by

In order to simplify composition of guard predicates which are alternatives, allow for passing a sequence of predicates whose values when called will be or'd together.

The :when keyword currently allows passing of a vector of predicates that are and'd together.

Either case (and or or) can be achieved externally to match via composition, and an alternative might be to force explicit composition outside of core.match.

At the least, the documentation should mention that multiple predicates will be and'd together.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/MATCH-40 (reported by hugoduncan)
...