Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Just one "1" in a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78140] Just one "1" in a list
  • From: Diana <diana.mecum at gmail.com>
  • Date: Sat, 23 Jun 2007 07:22:02 -0400 (EDT)

Math folks,

Can someone tell me what command I would use to pick out sublists
which contain just one "1"?

For example, if I have the following list,

{{1,2}, {1,3}, {2,3}, {2,1}, {1,1,2}, {1,2,2}, {2,1}},

I would like to just pull the terms,

{{1,2}, {1,3}, {2,1}, {1,2,2}, {2,1}}.

Can someone help? Thanks, Diana M.



  • Prev by Date: Re: Quick Question
  • Next by Date: align on equal signs with automatic equation numbering
  • Previous by thread: Re: Re: bug in Integrate
  • Next by thread: Re: Just one "1" in a list