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 1996

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

Search the Archive

Re: operations with lists

  • To: mathgroup at
  • Subject: [mg4099] Re: operations with lists
  • From: rhall2 at (hall robert)
  • Date: Tue, 4 Jun 1996 02:18:10 -0400
  • Organization: University of Maryland, Baltimore County
  • Sender: owner-wri-mathgroup at

In article <4obgff$opu at>,
Jonathan Lee  <bobjon at> 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  |  Bubbles bear no introspection."  -Khushhal Khan Khatak


  • 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