Yes.
I solved the problem with :
(defn second-elements [collection]
(let [second-item (fn [x] (get x 1))]
(map second-item collection)))
one thing I m not sure I understand complete. x is the output of the map
command, if so, how does Clojure know that.
Roelof
Op vrijdag 24 oktober 2014 14:45:20 UTC+2 schreef Laurens Van Houtven:
> Hi Roelof,
>
>
> OK, so, what you want to do is look at the example right before it, (defn
> mungefy …).
>
> You want to do something very similar: except instead of munge you’ll have
> a different (fn [x] …) that uses get on x. Make sense?
>
>
> hth
> lvh
>
>
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.