MathGroup Archive 1996

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

Search the Archive

Re: Part

  • To: mathgroup at
  • Subject: [mg2895] Re: Part
  • From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
  • Date: Fri, 5 Jan 1996 03:02:36 -0500
  • Organization: University of Colorado, Boulder

In article <4cgrsc$im4 at>,
Hans Steffani <hans.steffani at> wrote:
>npos is the position of the element I need.
>does not work, as it returns the second and the first

This same question came up a couple of weeks ago.  You want
to use:

	w[[Sequence @@ npos]]

Sequence is an undocumented function that obliterates the head
of whatever it is applied to.  In this case, it obliterates the
List wrapper, leaving a sequence of two integers.

		Dave Wagner
		Principia Consulting
		(303) 786-8371
		dbwagner at


  • Prev by Date: Comparison of Mathematica on Various Computers
  • Next by Date: Re: Part
  • Previous by thread: Part
  • Next by thread: Re: Part