On Dec 22, 10:59 am, Benny Tsai <benny.t...@gmail.com> wrote:
> > It does, but doesn't that make it less lazy? To reverse something, it
> > needs to evaluate the whole sequence. I yet have to learn how to
> > deal with lazyness.
> You're right, I hadn't realized 'reverse' is not lazy (I have a lot to
> learn about lazyness management myself :)).  In this case, though, I
> don't think it has too much impact, since:

Just FYI, it's not applicable here but there is also rseq, which
returns a reversed view on a collection in constant time. It only
works on vectors and sorted maps, though.

> By the way, what is "fmap"?

See the ns declaration:

> (ns karma
>  (:use [clojure.contrib.duck-streams :only (read-lines)])
>  (:use [clojure.contrib.generic.functor :only (fmap)]))

Justin

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

Reply via email to