MathGroup Archive 2006

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

Search the Archive

generalized foldlist problem


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