I cannot understand between ( next aseq) and ( rest aseq) ...
Thanks
AV
--
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
Hi,
On 3 Sep., 11:16, Abraham Varghese abev...@gmail.com wrote:
I cannot understand between ( next aseq) and ( rest aseq) ...
next will realise the first item of the rest of aseq, while rest will
not. You can always express next in terms of rest:
(defn next
[s]
(seq (rest s)))