MathGroup Archive 2006

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

Search the Archive

generalized foldlist problem

  • To: mathgroup at
  • Subject: [mg69057] generalized foldlist problem
  • From: "Arkadiusz Majka" <Arkadiusz.Majka at>
  • Date: Tue, 29 Aug 2006 03:25:38 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


Please, help!

I have two list


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


Thanks for any hints,


  • Prev by Date: Re: Hadamard -Sylvester Matrix Self-Similarity by substitution and reparatitioning
  • Next by Date: Re: NonlinearRegress with weight
  • Previous by thread: CatchMachineUnderflow
  • Next by thread: Re: generalized foldlist problem