Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Unsorted Union

  • To: mathgroup at
  • Subject: [mg61434] Unsorted Union
  • From: Robert Schoefbeck <schoefbeck at>
  • Date: Wed, 19 Oct 2005 02:16:12 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Hello all,

in the help section i found the following thing:

UnsortedUnion[x_] := Module[{f}, f[y_] := (f[y] = Sequence[]; y); f/@x]

It does just what it says:

(ordinary Union would Sort the result)

my question is: How does the definition work? I know all the syntax
and i have been using these concepts for for some time now. But i cant 
figure out what this definition does.


  • Prev by Date: Re: V5.2 or 5.1 slower than v.5.0 for NIntegrate ?
  • Next by Date: Re: Matrices and Conditional Statements
  • Previous by thread: Re: Desperate help
  • Next by thread: Re: Unsorted Union