MathGroup Archive 2007

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

Search the Archive

Re: Another question on lists

  • To: mathgroup at
  • Subject: [mg80699] Re: Another question on lists
  • From: chuck009 <dmilioto at>
  • 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 !!