MathGroup Archive 1997

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

Search the Archive

Re: Noah's List

  • To: mathgroup at
  • Subject: [mg5687] Re: Noah's List
  • From: killough at
  • Date: Sat, 11 Jan 1997 14:28:56 -0500
  • Organization: Convex Technology Center of Hewlett Packard, Richardson, Tx USA
  • Sender: owner-wri-mathgroup at

In article <5atsld$ssn at>,
Hans Havermann  <haha at> wrote:

>I have two lists, x and y, each containing n elements. I would like to
>generate a new list, {{x[[1]],y[[1]]}, {x[[2]],y[[2]]},...
>{x[[n]],y[[n]]}}, but have been unable to figure out a shorthand for it.
>Any help would be much appreciated.



Thread[f[args]] ``threads'' f over any lists that appear in args.
   Thread[f[args], h] threads f over any objects with head h that appear in
   args. Thread[f[args], h, n] threads f over objects with head h that appear
   in the first n args. Thread[f[args], h, -n] threads over the last n args.
   Thread[f[args], h, {n, m}] threads over arguments n through m.
Attributes[Thread] = {Protected}


  • Prev by Date: Reading external files
  • Next by Date: Numerical Solving of a system of equations
  • Previous by thread: Re: Noah's List
  • Next by thread: the mathematica journal