Thanks a lot Marko :) On Friday, March 22, 2013 12:44:06 PM UTC+2, Marko Topolnik wrote: > > Let's assume that key-fn is defined as #(.getID %) so we have: > >> >> #(keyset-b #(.getID %)) >> >> And now let's assume that item-object is passed to it. So, #(.getID %) >> returns, >> let's say, the number 3 (which is the value of the id). How exactly is that >> number is being looked up in keyset-b? How does keyset-b knows we are >> looking for an item with key id and value 3? >> > > Well, as its name already indicates, te keyset contains the keys. So it > will literally contain that 3 as its member. > > -marko >
-- -- 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.