MathGroup Archive 1996

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

Search the Archive

Re: operations with lists


In article <4obgff$opu at dragonfly.wolfram.com>,
Jonathan Lee  <bobjon at gatewest.net> wrote:

>2) is it possible to thread a compiled function over several lists.

If you set the attributes of the function to listable, it will do it 
automatically. See The Book, p. 272 for an example. Otherwise, try

  MapThread[f, {list1, list2, ... , listn}]


>3) is there any way to "intertwine" two lists?

  Transpose[list1, list2] // Flatten

There's a lot of other ways, but that's fairly simple.

-- 
Bob Hall            | "Know thyself? Absurd direction!
rhall2 at gl.umbc.edu  |  Bubbles bear no introspection."  -Khushhal Khan Khatak

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Numerical Evaluation of Sqrt[]
  • Next by Date: Mathlink
  • Previous by thread: Re: Numerical Evaluation of Sqrt[]
  • Next by thread: Re: operations with lists