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
- Follow-Ups:
- Re: Selecting Sub-lists After Split
- From: János <janos.lobb@yale.edu>
- Re: Selecting Sub-lists After Split