On Jun 13, 9:17 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote: > This thread is interesting because we have a solution that is > suggested : using map then filter then take then count, which will > result in creating, for at least num pixels, at worst the full number > of pixels, 2 conses, and 3 times walking the array.
Well, the map is redundant - it's sufficient to just use filter. Second, because these are lazy sequences, we're only walking the array once, and not storing any more data than we need to. - James --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---