Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: List Position

  • To: mathgroup at
  • Subject: [mg15784] Re: List Position
  • From: "Allan Hayes" <hay at>
  • Date: Sun, 7 Feb 1999 02:04:00 -0500 (EST)
  • References: <79eagc$>
  • Sender: owner-wri-mathgroup at

Harry flynn wrote in message <79eagc$9ig at>...
>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
>that the first value of interest to me is position 5. Thanks in advance.



The HelpBrowser gives

Position[expr, pattern, levspec, n] gives the positions of the first n
parts of expr which match the pattern. 


Allan Hayes
Mathematica Training and Consulting
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: Re: Finding real part (newbie question)
  • Next by Date: Re: Finding real part (newbie question)
  • Previous by thread: Re: List Position
  • Next by thread: Re: List Position