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

0 votes
in core.match by

The first example for "Or Patterns" on the Overview page in the wiki will cause an IllegalArgumentException.

`
user=> (use '[clojure.core.match :only (match)])
nil
user=> (let [x '(1 2 3)]
#=> (match [x]
#
=> [[1 (:or 3 4) 3]] :a0
#_=> [[1 (:or 2 3) 3]] :a1))

IllegalArgumentException No matching clause: (1 2 3) user/eval5476 (form-init4056337243047274400.clj:2)
`

The example should probably either use a vector for x, or a seq pattern in the match. Included patch with the latter.

1 Answer

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