Holy cow! Where have these been hiding! They don't show up on ClojureDocs.org at all!!! I was about to write my own macro vmap to implement (vec (map(...)) for just the use cases outlined above.
I just looked on clojure.org, and searching on "map" doesn't return any (useful) results. I eventually found it alphabetically on a sub-page in the API area. I saw an email a while back that claimed ClojureDocs.org is working on a re-write of the site, and an upgrade from Clojure 1.2 to 1.5. In the meantime, is there a better way of exploring the API? Alan On Sat, Feb 8, 2014 at 1:44 AM, mynomoto <mynom...@gmail.com> wrote: > Maybe you could use mapv and filterv? This way you will always get a > vector and conj apends in the end. > > > On Friday, February 7, 2014 10:20:09 PM UTC-2, t x wrote: >> >> Consider the following: >> >> (cons 1 '(2 3 4)) ==> (1 2 3 4) >> (cons 1 [2 3 4]) ==> (1 2 3 4) >> >> (conj '(a b c) 1) ==> (1 a b c) >> (conj '[a b c] 1) ==> [a b c 1] >> >> >> ================================ >> >> Now, I would like something that _always_ >> * appends to the end >> >> cons is almost what I want, except it always appends to front. >> >> conj is not what I want -- in fact, I'm afraid of conj. Often times, >> I'll run map/filter on something, and suddenly, instead of a vector, I >> now have a list -- and conj changes the order of the item added. >> >> Thus, my question: is there a builtin to _unconditinoally_ append to >> the end of a list/sequence/vector? >> >> Thanks! >> > -- > 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/groups/opt_out. > -- 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/groups/opt_out.