#(s/upper-case (name %))
Good and clear in this case.

#(-> % name s/upper-case)
I think that would be nice if there were three functions.

(comp s/upper-case name)
I think its hard to read for beginners, because you have to read it
backwards and no parens to indicate but you could say that the have to
get used to it.

On Sep 30, 10:09 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> On 30 Sep., 09:37, Sean Corfield <seancorfi...@gmail.com> wrote:
>
> > That's very similar to one of my attempts and... I don't know... I
> > just don't like it as much. Splitting the map into two streams and
> > zipping them back together just doesn't feel as 'nice' and making one
> > pass over the key/value pairs of the map...
>
> The two passes are an argument. I - personally - like the split,
> because it makes clear that the values are not touched, while they are
> carried as dead weight in the one solutions.
>
> > Interesting choice of comp - I think I went with #(s/upper-case (name
> > %)) - I guess comp is more idiomatic, functionally?
>
> Dunno. I don't use it very often. I normally also use #() but in this
> case it was nice and clean.
>
> Sincerely
> Meikel

-- 
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

Reply via email to