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. On Fri, May 2, 2014 at 10:53 AM, Dave Tenny <dave.te...@gmail.com> wrote: > I have a sequence from a call to 'sort'. > I want a list. > > What is the best way to do this? > > (apply list (sort ...))? > > Will it have problems on large sequence inputs? > > > I can't use (into () (sort ...)) > since that conjoins and ruins the sort order. > > > -- > 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 > --- > You received this message because you are subscribed to a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/sN37zftHSQ4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.