MathGroup Archive 2007

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

Search the Archive

Re: Just one "1" in a list


Here's one way:

lista = {{1, 2}, {1, 3}, {2, 3}, {2, 1}, {1, 1, 2}, {1, 2, 2}, {2, 1}};

Select[lista, Count[#, 1] == 1 &]


  • Prev by Date: Re: A Note of Thanks
  • Next by Date: Summations
  • Previous by thread: Re: Just one "1" in a list
  • Next by thread: Fwd: Just one "1" in a list