MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: reliably sort?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123713] Re: reliably sort?
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Fri, 16 Dec 2011 05:49:18 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jca06e$a35$1@smc.vnet.net> <201112150956.EAA23025@smc.vnet.net> <op.v6js80k5tgfoz2@bobbys-imac.local>
  • Reply-to: nma at 12000.org

On 12/15/2011 2:44 PM, DrMajorBob wrote:
> Michael,
>
> Sorry, but no. Union always sorts.
>
> Bobby
>

You mean Mathematica's Union[] always sorts, right? Because
at school the teacher kept telling us that a set has no
implied order between its elements. It is just a collection
of elements. But a sequence has an order.

Result of a Union is a set. Hence one can not talk about
a set being sorted.  The result is not a set then, but a
sequence, but the result of a Union should be a set.

--Nasser





  • Prev by Date: Table constructed from two lists
  • Next by Date: Re: precision of y-axis values in plot
  • Previous by thread: Re: Does Union[] reliably sort?
  • Next by thread: Re: reliably sort?