On Oct 24, 11:46 pm, Tim Webster <timothy.webs...@gmail.com> wrote: > I have an issue that I think is related to laziness, but I am not sure > I understand where the problem lies. > > Let's say I have tabular data in a sequence of sequences. I get the > second column of the table like this: > > (map #(nth % 1) my-table) > > I can do some sequence things directly to the list returned by the > call to function, but not everything. For example, > > (distinct (map #(nth % 1) my-table)) > > works fine, but > > (frequencies (map #(nth % 1) my-table)) > > throws java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
I can't reproduce this with Clojure 1.2: user=> (frequencies (map #(nth % 1) [[1 2 3][4 5 6][1 2 3]])) {2 2, 5 1} -- 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