MathGroup Archive 2004

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

Search the Archive

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


On 7/29/04 at 7:46 AM, sean_incali at yahoo.com (sean kim) wrote:

>Outer[List, {a, b, c}, {a, b, c}, {a, b, c}]

>will output

<output snipped>

>how do I remove {a,a,a} and {b,b,b} and {c,c,c} from above?

DeleteCases[Outer[List, 
   {a, b, c}, {a, b, c}, 
   {a, b, c}], {x_, x_, x_}, 
  3]
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: how to effectively define a subsection function
  • 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.