Re: Position of element in a list
- To: mathgroup at smc.vnet.net
- Subject: [mg16351] Re: [mg16301] Position of element in a list
- From: BobHanlon at aol.com
- Date: Thu, 11 Mar 1999 02:16:33 -0500
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 3/7/99 7:48:00 AM, rmason at sparky2.esd.mun.ca writes: >I want to find the Position[] of negative elements in a list. The obvious >methods do not work: > >Position[{-1, 3, -2, 1}, -_] > >and > >Position[{-1, 3, -2, 1}, -x_] > >return > >{} > >So how do I perform this apparently simple task? > Position[{-1, 3, -2, 1}, _?Negative] Bob Hanlon