core.match

Inconsistent [_ & _] behavior

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    clojure 1.5.1
    core.match 0.2.0-rc4

Description

(let [x [1 2]]
  (match x 
    [0 _ _ _] :a 
    [1 & _] :b 
    _ :c)) ; :c

(let [x [1 2]]
  (match x
    [1 & _] :b 
    [0 _ _ _] :a 
    _ :c)) ; :b

Both clojure and clojurescript

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: