Re: newbie destructuring question

2009-01-15 Thread wubbie
> Extra pair of []? What do you mean? Sorry, my bad. -sun On Jan 15, 1:25 pm, James Reeves wrote: > On Jan 15, 2:54 pm, wubbie wrote: > > > But in partial desctructuring, [[a [b]] has extra pair of outer-most > > [] which leads to confusion. Any explanation on that? > > Extra pair of []? What

Re: newbie destructuring question

2009-01-15 Thread James Reeves
On Jan 15, 2:54 pm, wubbie wrote: > But in partial desctructuring, [[a [b]] has extra pair of outer-most > [] which leads to confusion. Any explanation on that? Extra pair of []? What do you mean? The destructuring pattern is: [[a [b]] & leftover] The pattern you're matching is: (("one" ("two")

newbie destructuring question

2009-01-15 Thread wubbie
came across over the net the following examples. I can understand full destructuring because "[" and "]" mirrors the structure of tree. But in partial desctructuring, [[a [b]] has extra pair of outer-most [] which leads to confusion. Any explanation on that? Also not sure about the last (on string