<< Back to previous view

[MATCH-84] Rest does not work on vectors? Created: 21/Jul/13  Updated: 28/Jul/13  Resolved: 24/Jul/13

Status: Closed
Project: core.match
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Critical
Reporter: Yongqian Li Assignee: David Nolen
Resolution: Completed Votes: 0
Labels: None


 Description   
(let [v [3 2 3 4]]
  (match [v]
    [[1 1 3]] :a0
    [[3 & r]] :a2))

Gives "java.lang.IllegalArgumentException: No matching clause: [3 2 3 4]"

(let [v [3 2 3 4]]
  (match [v]
    [[3 & r]] :a2))
=> :a2, as expected

(let [v [3 2 3 4]]
  (match [v]
    [[1 1 3]] :a0
    [[3 2 3 4]] :a2))
=> :a2, as expected


 Comments   
Comment by David Nolen [ 24/Jul/13 8:48 PM ]

fixed, http://github.com/clojure/core.match/commit/ae2bc9c581c2e95b24270498549e97d59f379b1f

Generated at Sat Oct 25 12:01:42 CDT 2014 using JIRA 4.4#649-r158309.