[Haskell-begin] Alternating sequence
Dirk Markert
dirk.markert at gmail.com
Mon Jul 21 11:59:14 EDT 2008
Hi apfelmus,
of course a left scan. What else!
Really a very, very nice solution.
Thank you,
Dirk
2008/7/21 apfelmus <apfelmus at quantentunnel.de>:
> Use a left scan
>
> result = 2:3:scanl (+) 5 (cycle [2,4])
>
>
> Regards,
> apfelmus
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20080721/2bcb38f0/attachment-0001.htm
More information about the Beginners
mailing list