On Fri, Apr 9, 2010 at 10:39 PM, Josh Stratton <strattonbra...@gmail.com> wrote: > Here's an example of trying to use "map" to bring the two tables > together together in the same scope. I'm doing this because the nth > element in one sequence correlates to its nth counterpart in the > second sequence. mainTables is a sequence of JTables and fixedTables > is an equally sized sequence of JTables. For some reason though it > appears that setupTable is never being called. Why is that? Is there > a better way to do this?
It's because map returns a lazy sequence. Wrap a doall around the call. There's also no need to write (fn [main fixed] (setupTable main fixed)). Instead just write setupTable. Functional programmers call this kind of refactoring an eta reduction. -Per -- 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 To unsubscribe, reply using "remove me" as the subject.