RE: more with lists
- To: mathgroup at smc.vnet.net
- Subject: [mg40344] RE: [mg40326] more with lists
- From: "Harvey P. Dale" <hpd1 at nyu.edu>
- Date: Wed, 2 Apr 2003 04:35:55 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Nathan: You can still use Select, but make the conditions conjunctive using "&&." For example: Select[list, #[[1]]<Xo && #[[2]]>Yo &] Best, Harvey Harvey P. Dale University Professor of Philanthropy and the Law Director, National Center on Philanthropy and the Law New York University School of Law Room 206A 110 West 3rd Street New York, N.Y. 10012-1074 -----Original Message----- From: Nathan Moore [mailto:nmoore at physics.umn.edu] To: mathgroup at smc.vnet.net Subject: [mg40344] [mg40326] more with lists The replies have been beautiful! suppose I have a list of n {x,y}pairs. I'd like to cull the list into a smaller list for which the condition x<Xo, y>Yo is true. If the list was 1-D I could simply use "Select," how do I access the data points in pairs? Nathan Moore Universoty of Minnesota Physics