generalized foldlist problem
- To: mathgroup at smc.vnet.net
- Subject: [mg69057] generalized foldlist problem
- From: "Arkadiusz Majka" <Arkadiusz.Majka at telekomunikacja.pl>
- Date: Tue, 29 Aug 2006 03:25:38 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
DearAll, Please, help! I have two list list1={a,b,c,d,e} list2={3,2,5,1,6} and I want to apply a modified version of FoldList to list1 in the following way: list2 indicates that element a appears only 3 times (if space enough) beginning from the beginning of the list , element b appears 2 times, c - 5 times , etc. So the output should be GeneralizedFoldList[list1,list2]={a,a+b,a+b+c,c+d,c+e} Thanks for any hints, arek
- Follow-Ups:
- Re: generalized foldlist problem
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: generalized foldlist problem
- From: Adriano Pascoletti <pascolet@dimi.uniud.it>
- Re: generalized foldlist problem