Hi everyone,
I am new to Clojure and have been playing around with it for a little
while. I have seen that (get [3 2 1] 0) and ([[3 2 1] 0) both return the
value 3. Similarly (get {:a 0 :b 1} :b) and ({:a 0 :b 1} :b) return 1.
I was wondering if anyone could explain why the get function is useful or
maybe an example?
Apologies in advance if this question is due to ignorance and I haven't
reached the level where this function is used.
Thanks in advance
--
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.