Coroutining folds with hyperfunctions

1Citations
Citations of this article
14Readers
Mendeley users who have this article in their library.

Abstract

Fold functions are a general mechanism for computing over recursive data structures. First-order folds compute results bottom-up. With higher-order folds, computations that inherit attributes from above can also be expressed. In this paper, we explore folds over a form of recursive higher-order function, called hyperfunctions, and show that hyperfunctions allow fold computations to coroutine across data structures, as well as compute bottom up and top down. We use the compiler technique of foldr-build as an exemplar to show how hyperfunctions can be used.

Cite

CITATION STYLE

APA

Launchbury, J., Krstic, S., & Sauerwein, T. E. (2013). Coroutining folds with hyperfunctions. In Electronic Proceedings in Theoretical Computer Science, EPTCS (Vol. 129, pp. 121–135). https://doi.org/10.4204/EPTCS.129.9

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free