My question would be: why do you specifically need a list? i.e., why isn't a sequence good enough?
Sean On May 3, 2014, at 6:30 AM, Dave Tenny <dave.te...@gmail.com> wrote: > After nosing around all I've come up with via clojure mechanisms is to use > (apply list (sort ...)). > It seems to work well enough for lists of arbitrary size (subject to usual > memory/size limitations of large lists). > > I also considered some native java abuse such as > java.util.Arrays.asList(Enumeration), > though I didn't quickly find a way to convert the clojure.lang.ArraySeq from > my sort() in testing to an Enumeration. > > Guess I'm set for now, I was just hoping to avoid consing a new list on my > sort result in order to get a specific collection type.
signature.asc
Description: Message signed with OpenPGP using GPGMail