You can also tell them also that since in practice it can be slippery to keep track of what type of collection you're dealing with, it's common to defensively coerce, eg. (conj (vec foo) 1 2) instead of just (conj foo 1 2).
On Sun, Jul 22, 2018 at 2:22 PM Christian Seberino <cseber...@gmail.com> wrote: > - conj adds an element in the place best for the collection type. > > > Is this a valid hypothetical to worry about?... > > Imagine you're the teacher and make the comment above. > > Student responds.. > > "But why, Mr. Teacher, is the 'best' place different for lists and > vectors? That seems strange that they are opposite.".... > > <30 minute heated discussion ensues about aesthetics, efficiency and > nuances of lists vs. vectors you were trying to avoid.> > > > > > > > > > -- > 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. > -- 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.