On Saturday, June 11, 2016 at 5:29:55 PM UTC-4, Alex Miller wrote: > > Currently only vectors and lists implement the stack interfaces, not seqs. > I do not think it makes sense for *all* seqs to implement the stack > interface. >
Why not? They all support efficient first and next operations. And as I said it violates least surprise if they're not treated uniformly. It's *definitely* wrong for (pop (seq X)) to work and (pop (seq Y)) to fail when X and Y are both non-empty colls. -- 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.