Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: how to delete duplicate items in the same list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45510] Re: how to delete duplicate items in the same list
  • From: "Bo Le" <bole79 at email.si>
  • Date: Sat, 10 Jan 2004 16:43:30 -0500 (EST)
  • References: <bto1uf$2ka$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi!

I would do it like this:

test={a,a,a,b,b,b,a,a,c,d,e,f,f,f,e,f,a};

Map[First,Split[Sort[test]]]




okej?


Borut Levart
Slovenia





    test =
"Sabrina" <hxs61 at case.edu> wrote in message
news:bto1uf$2ka$1 at smc.vnet.net...
> Hello, all:
> I can't find a way to make sure all items in the same list are unique. Can
> anybody help me out? Thanks a lot!
>
> Sabrina
>
>
>


  • Prev by Date: Re: how to delete duplicate items in the same list
  • Next by Date: Re: how to delete duplicate items in the same list
  • Previous by thread: Re: how to delete duplicate items in the same list
  • Next by thread: Re: how to delete duplicate items in the same list