[Haskell-cafe] operations on lists with continuations

Evan Laforge qdunkan at gmail.com
Wed Mar 9 05:05:24 CET 2011


On Wed, Mar 2, 2011 at 12:00 AM, Stephen Tetley
<stephen.tetley at gmail.com> wrote:
> Maybe you've invented the ApoPrelude?
>
> If I were doing it I'd probably code them in terms of an apomorphism -
> unfoldr with flush. Unlike regular unfoldr which discards the final
> state, an apomorphism uses the final state to produce the tail of the
> output list. See Jeremy Gibbons paper "Streaming
> representation-changers" section 4.4.
>
> http://www.comlab.ox.ac.uk/jeremy.gibbons/publications/

Interesting, thanks for the link.  Indeed it looks like a special case
of a general concept someone has already gotten a fair bit of milage
out of :)



More information about the Haskell-Cafe mailing list