(into () [1 2 3 5]) On Aug 8, 11:29 am, MarisO <[email protected]> wrote: > Do you know of any trick to reverse a sequence without reverse or > rseq ? > > I wrote it like this: > > ((fn rev > ([s] (rev '() s)) > ([r s] (if (seq s) (rev (cons (first s) r) (rest s)) r )) ) > '[1 2 3 5] ) > > https://gist.github.com/1132357 > > I wonder if it can be written more shortly.
-- 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
