Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

A NewBie Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53582] A NewBie Question
  • From: Zhe Hu <iamhuzhe at gmail.com>
  • Date: Wed, 19 Jan 2005 01:59:34 -0500 (EST)
  • Reply-to: Zhe Hu <iamhuzhe at gmail.com>
  • Sender: owner-wri-mathgroup at wolfram.com

Is there a way to take parts of a list as follows:

takeParts[{a,b,c,d,e,f,g,h,i}, {2,3,4}]

{{a,b}, {c,d,e}, {f,g,h,i}}

A tedious way might be transforming {2, 3, 4} into {{1,2}, {3,5}, {6,
9}} (by Fold) and then Part/@ onto it. Is there a simpler way to do
it?

Thanks,
Hu Zhe


  • Prev by Date: Matrix Problem
  • Next by Date: Function Fitting To 3D Data
  • Previous by thread: Re: Problems with ExtendGraphics/Delaunay Triangulation
  • Next by thread: Re: A NewBie Question