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
- Follow-Ups:
- Re: A NewBie Question
- From: János <janos.lobb@yale.edu>
- Re: A NewBie Question
- From: DrBob <drbob@bigfoot.com>
- Re: A NewBie Question
- From: Andrzej Kozlowski <akozlowski@gmail.com>
- Re: A NewBie Question