Re: Destructuring bind question

2008-10-08 Thread Rich Hickey
On Oct 7, 9:39 pm, Tom Hicks <[EMAIL PROTECTED]> wrote: > This destructuring on sequences works: > > user=> (let [[:as m] [1 2]] m) > [1 2] > > but this one on associations doesn't (and it seems like it should): > > user=> (let [{:as m} {:b 1 :c 2}] m) > > java.lang.NullPointerException > clojur

Destructuring bind question

2008-10-07 Thread Tom Hicks
This destructuring on sequences works: user=> (let [[:as m] [1 2]] m) [1 2] but this one on associations doesn't (and it seems like it should): user=> (let [{:as m} {:b 1 :c 2}] m) java.lang.NullPointerException clojure.lang.Compiler$CompilerException: NO_SOURCE_FILE:14: null .. Is there