Shouldn't that be (.-length nl) ? Matt
On Tuesday, January 10, 2012 7:25:29 AM UTC+10, Jozef Wagner wrote: > > Beware that NodeList is often a live collection, so it is probably a good > idea to produce "eager" seq. I use this to convert it to seq: > > (defn nodelist-to-seq > "Converts nodelist to (not lazy) seq." > [nl] > (let [result-seq (map #(.item nl %) (range (.length nl)))] > (doall result-seq))) > -- 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