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: Re: DeleteCases : several at once, conditions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49705] Re: [mg49669] Re: DeleteCases : several at once, conditions
  • From: DrBob <drbob at bigfoot.com>
  • Date: Thu, 29 Jul 2004 07:43:19 -0400 (EDT)
  • References: <cd8b1n$olb$1@smc.vnet.net> <cdb1ht$aiv$1@smc.vnet.net> <200407271100.HAA11146@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

Union@{{1,3},{1,4},{1,5},{1,7},{1,8},{1,9},{1,9},{1,9},{1,9},{2,3},{2,3},{
     2,5},{2,6},{2,7},{3,5},{3,6},{3,7},{3,8},{3,9},{
     3,9},{3,10},{4,6},{4,8},{4,8},{4,10},{5,7},{5,10},{6,7},{6,7},{6,7},{6,
     7},{6,8},{6,10},{7,8},{7,9},{8,10},{8,10}}

{{1,3},{1,4},{1,5},{1,7},{1,8},{1,9},{2,3},{2,5},{2,6},{2,7},{3,5},{3,6},{
   3,7},{3,8},{
   3,9},{3,10},{4,6},{4,8},{4,10},{5,7},{5,10},{6,7},{6,8},{6,10},{7,8},{7,
   9},{8,10}}

Bobby

On Tue, 27 Jul 2004 07:00:50 -0400 (EDT), camerzone <camerzone at yahoo.com> wrote:

> Thank you for all the responses. I found them most helpful.
>
> How about if I want to delete repeating cases?  Say I want to be left
> with a list of unique pairs from this list
> ll={{1, 3}, {1, 4}, {1, 5}, {1, 7}, {1, 8}, {1, 9}, {1, 9}, {1, 9}, {
>   1, 9}, {2, 3}, {2, 3}, {2, 5}, {2, 6}, {2, 7}, {3, 5}, {3, 6}, {
>   3, 7}, {3, 8}, {3, 9}, {3, 9}, {
>   3, 10}, {4, 6}, {4, 8}, {4, 8}, {4, 10}, {5, 7}, {5, 10}, {6, 7},
> {6,
>     7}, {6, 7}, {6, 7}, {6, 8}, {6, 10}, {7, 8}, {7, 9}, {8, 10}, {8,
> 10}}
>
> TIA, again.
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: Combinations
  • Next by Date: Re: Using "Sum" (i = 1 ... N) in a function definition
  • Previous by thread: Re: Re: DeleteCases : several at once, conditions
  • Next by thread: How to extract a solution from Mathematica's answer to "Solve"