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

Selecting Sub-lists After Split

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77425] Selecting Sub-lists After Split
  • From: Gregory Lypny <gregory.lypny at videotron.ca>
  • Date: Fri, 8 Jun 2007 05:34:49 -0400 (EDT)

Hello everyone,

Suppose I have a list of real number called myList.  I split it into  
sub-lists of positive and negative numbers called myNewList by doing  
this (there may be a more elegant way):

myNewList = Split[myList, #1 #2 > 0 &]

Now, how can I select all of the sub-lists of negative numbers from  
myNewList?

Any tips would be most appreciated.

Regards,

	Gregory 


  • Prev by Date: 6.0 Standard Packages?, New Style Documentation?
  • Next by Date: documention for the Documentation Center in math6.0
  • Previous by thread: Re: 6.0 Standard Packages?, New Style Documentation?
  • Next by thread: Re: Selecting Sub-lists After Split