计算机科学 > 程序设计语言
[提交于 2013年9月20日]
标题:Coroutining Folds with Hyperfunctions
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:EPTCS[v1] 2013年9月20日 星期五 01:43:56 UTC