MathGroup Archive 1999

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

Search the Archive

Re: List Position


Harry,

Position
[{{1},{1},{2},{8},{-3}},x_ /;x<=0][[1,1]]

5


> Can anyone tell me how I find the position in a list of the first value
> less than or equal to zero.
> For example, how can I get Mathematica to tell me that in the list
> {{1},{1},{2},{8},{-3}}
> that the first value of interest to me is position 5. Thanks in advance.
> Harry.
> 
> 
> 


  • Prev by Date: Graphics3D and polygons
  • Next by Date: Using Mathem.. to learn calculus? or Statistics?
  • Previous by thread: RE: List Position
  • Next by thread: Re: List Position