Re: Destructuring can create structure..?

2012-08-29 Thread Douglas Orr
se when you consider that vectors are > associative: they map index to value. > > (let [{a 1 b 3 :as c} [:a 1 :b 2]] [a b c]) > => [1 2 [:a 1 :b 2]] > > Justin > > On Tuesday, August 28, 2012 8:30:58 AM UTC-4, Douglas Orr wrote: >> >> One possibly confusing titbit

Destructuring can create structure..?

2012-08-28 Thread Douglas Orr
One possibly confusing titbit I came across recently relates to how Clojure handles destructuring of variable-length argument lists. The essence is that the destructuring form can appear to influence the 'shape' of the collection of arguments. Here is what I mean: take nothing off the head of t