MathGroup Archive 2004

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

Search the Archive

Re: pattern matching and droping elements from list of lists.


DeleteCases[Outer[List, {a, b, c}, {a, b, c}, {a, b, c}], {x_, x_, x_}, 3]


Bob Hanlon

> In a message dated Thu, 29 Jul 2004 12:45:10 +0000 (UTC), 
> sean_incali at yahoo.com writes: <Outer[List, {a, b, c}, {a, b, c}, {a, b, c}]
> 
> will output 
> 
> {{
> {{a, a, a}, {a, a, b}, {a, a, c}}, {{a, b, a}, {a, b, b}, {a, b, c}},
> {{a, c, a}, {a, c, b}, {a, c, c}}},
> {{{b, a, a}, {b, a, b}, {b, a, c}}, {{b, b, a}, {b, b, b}, {b, b, c}},
> {{b, c, a}, {b, c, b}, {b, c, c}}},
> {{{c, a, a}, {c, a, b}, {c, a, c}}, {{c, b, a}, {c, b, b}, {c, b, c}},
> {{c, c, a}, {c, c, b}, {c, c, c}}
> }}
> 
> how do I remove {a,a,a} and {b,b,b} and {c,c,c} from above? 
> 


  • Prev by Date: Re: Pad a sign - and + to a list of lists
  • Next by Date: Re: Pad a sign - and + to a list of lists
  • Previous by thread: Re: pattern matching and droping elements from list of lists.
  • Next by thread: Re: pattern matching and droping elements from list of lists.