I was trying to understand part 2 of the OP’s question (per the piece I had quoted in my response).
Part 1 of the OP’s question is pretty clear cut: the order of the result depends on which element is kept. Given that, if you *don’t* care about the order, you could use `set` instead of `distinct`, it could reasonably be argued that `distinct` should indeed provide an ordering guarantee. Note that part 2 of the OP’s question would still hold for calling `set`. Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood On 12/29/16, 3:46 PM, "Erik Assum" <clojure@googlegroups.com on behalf of e...@assum.net> wrote: Wouldn't the order be different depending on wether you keep the first or the last? (distinct [1 2 1]) => [1 2] vs (distinct [1 2 1]) => [2 1] Erik. -- i farta Den 29. des. 2016 kl. 22.32 skrev Sean Corfield <s...@corfield.org>: Can you provide a scenario when it matters? Given that you had two immutable, equal values in a collection, when would it matter which one was discarded and which one was kept? -- 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.