Nice explanation! --Alan On Tue, Mar 19, 2013 at 1:09 PM, Jim - FooBar(); <jimpil1...@gmail.com>wrote:
> oooo nice one...when thinking like there is literally no confusion. > thank you thank you thank you :) > > Jim > > > > On 19/03/13 20:05, Marko Topolnik wrote: > > Think of it in layers, like this---layer 1: > > {w :weigths, u :uni-probs, b :bi-probs, t :tri-probs} > > Then, instead of an atomic w, recursively substitute another > destructuring form, which will destructure the value of that w (which is > also a map). This form is {:keys [w1 w2 w3]}. That gives you complete > layer 2: > > {{:keys [w1 w2 w3]} :weigths, u :uni-probs, b :bi-probs, t :tri-probs} > > On Tuesday, March 19, 2013 8:58:43 PM UTC+1, Jim foo.bar wrote: >> >> On 19/03/13 19:49, Marko Topolnik wrote: >> > {{:keys [w1 w2 w3]} :weights} >> >> awsome!...the full thing actually is {{:keys [w1 w2 w3]} :weights u >> :uni-probs b :bi-probs t :tri-probs} >> >> I always get confused when the order changes like that...thanks for >> unblocking me Marko :) >> >> Jim >> >> >> -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.