ACM Transactions on Programming Languages and Systems · 2005 · 15 citations · 5 references
ComputingComputer ScienceAlgorithmsData StructuresProgramming LanguagesAbstract Syntax TreesFunctional ProgrammingRecursion TheoryDouble-ended QueuesFunctional Data Structures
There are several purely functional libraries for converting tree structured data into indented text, but they all make use of some backtracking. Over twenty years ago, Oppen published a more efficient imperative implementation of a pretty printer. This article shows that the same efficiency is also obtainable without destructive updates by developing a similar but purely functional Haskell implementation with the same complexity bounds. At its heart lie two lazy double ended queues.
5
Using circular programs to eliminate multiple traversals of data
Richard Bird · Acta Informatica · 1984 · 155 citations
Dereck C. Oppen · ACM Transactions on Programming Languages and Systems · 1980 · 68 citations · Full text
Chris Okasaki · 2000 · 28 citations