> > The only function I could find that takes a vector and returns a list > instead of a vector or a sequence is the reverse function. Are there > others?
Map and other lazy functions currently return a LazySeq - (map #(+ %) [1 2 3]) => (2 3 4) cons currently returns a Cons type - (cons 0 [1 2 3]) => (0 1 2 3) I refered to list types in the previous note, such as LazySeq and Cons. I'm not suggesting your article discuss these specific types that are returned by certain functions, but rather that some core functions when provided a vector will return a type that does not have the same performance characteristics as a vector. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---