Hi,

nth takes collection and returns item of that collection. In such cases,
collection comes first.
nth follows the semantics of first, second, get, ...

take-nth takes collection and returns other collection. In such cases,
collection comes last.
take-nth follows the semantics of take, map, filter, ...

JW


On Fri, Jan 3, 2014 at 2:42 PM, John Kida <jdk...@gmail.com> wrote:

>
> (take-nth i coll)
> (nth coll i) or (nth coll i not-found)
>
> Why is one using the index as the first parameter and the other uses index
> as its second parameter..?
>
> Is there any good articles out there for clojure idioms that may explain
> some of these things?
>
>
>
>
>  --
> --
> 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.
>

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

Reply via email to