Re: Deleting elements from a Table

*To*: mathgroup at smc.vnet.net*Subject*: [mg85982] Re: Deleting elements from a Table*From*: Luigi B <L.Balzano at gmail.com>*Date*: Fri, 29 Feb 2008 06:26:03 -0500 (EST)*References*: <fq0u1f$k7g$1@smc.vnet.net> <fq1296$mdj$1@smc.vnet.net>

On 28 Feb, 09:06, bsyeh... at gmail.com wrote: > TabIN /. {a___,{q_,_},b___,{q_,_},c___}:> {a,b,c} > no need for Sort > > On Wed, Feb 27, 2008 at 11:23 AM,LuigiB <L.Balz... at gmail.com> wrote: > > On 26 Feb, 13:56, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de> > > wrote: > > > Hi, > > > > TabIN /. {a___,{q_,_},{q_,_},b___}:> {a,b} > > > > if the second element are not follow the first, you may > > > Sort[] the list. > > > > Regards > > > Jens > > > > L.Balz... at gmail.com wrote: > > > > Dear All, > > > > I have go the following problem: > > > > I have a table of elements like {{x1,y1},{x2,y2}....}. Occasionally, > > > > two elements have the same x. I would like to drop these elements with > > > > a rule-based function. > > > > Example: > > > > > TabIN={{1,1},{1,2},{2,2}}; > > > > > my desired output is: > > > > > TabOUT={{2,2}} > > > > > Any help? > > > > Thanks > > > >Luigi > > > Thanks, it works! > > but what if (time-wise) I want to skip the Sort of the input table? > > > ciao > >Luigi Thank you guys. It works fine. Luigi