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

Re: Another question on lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80699] Re: Another question on lists
  • From: chuck009 <dmilioto at comcast.com>
  • Date: Wed, 29 Aug 2007 04:17:56 -0400 (EDT)

Do it in steps first:

1.  Get the lengths of all the sub-lists:

Length[#]& /@ myList

2.  Find the maximum of those lengths:

Max[Length[#]& /@ myList]

3.  Now apply Select with that maximum value:

Select[myList, Length[#] == Max[Length[#] & /@ myList] &]


  • Prev by Date: Re: Save notebooks as hierarchy of Web pages in V6?
  • Next by Date: Re: Mistake in applying a rule
  • Previous by thread: Re: Another question on lists
  • Next by thread: Mathematica 6.0.1, Crashes when I hit the ENTER key !!