From enumerators to cursors: turning the leftfold inside out, 2004. At http://okmij.org/ftp/Haskell/ fold-stream.lhs (0)

by Oleg Kiselyov