You can avoid superfluous anonymous functions. For example, this:

  (map #(get % :id) my-sequence)

vs this:

  (map :id my-sequence)

Cheers,

Dave


On Thu, Dec 20, 2012 at 3:13 PM, Jonathon McKitrick
<[email protected]> wrote:
> I thought it was pretty interesting to treat maps as functions, and even
> more intrigued at treating keywords as functions as well.
>
> What does this gain from a language design perspective, that you cannot get
> with (get map keyword) or ever (map keyword)?  Why the additional option of
> (keyword map) ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to