On Mon, Dec 20, 2010 at 10:27 AM, uap12 <anders.u.pers...@gmail.com> wrote: > Tanks very mutch for the help. > /Anders
Of course (apply str ...) will suck the whole file into ram all at once, eagerly. If it's a multi-gigabyte file expect OOME. It would be nice if there was a variation on re support that worked on arbitrary seqs -- seqs of Characters, at least, and preferably (with suitable additional features) perhaps also seqs of other objects. (Ultimately, it always boils down to a test of whether a particular object meets some criterion. Sometimes that's equality with a particular other object; sometimes membership in a range. Using = and, with ranges, compare with the endpoints seems like it should generalize well, but you might want to be able to supply a set of class-comparator pairs. These could be combined into a multimethod under the hood that acts as a global comparator during what followed. Ranges wouldn't always make sense, such as for maps and sets; lists, seqs, and vectors might have a default comparison that generalizes that for strings, though that will wedge if two equal, infinite seqs ever get compared. Then again so will =.) -- 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