Disciplined, efficient, generalised folds for nested datatypes
Disciplined, efficient, generalised folds for nested datatypes
复制标题
嵌套数据类型的规范、高效、通用折叠
DOI:
--
复制
发表时间:
2004
影响因子:
1
通讯作者:
Ian Bayley
中科院分区:
文献类型:
--
作者:
Clare E. Martin;J. Gibbons;Ian Bayley
Abstract.Nested (or non-uniform, or non-regular) datatypes have recursive definitions in which the type parameter changes. Their folds are restricted in power due to type constraints. Bird and Paterson introduced generalised folds for extra power, but at the cost of a loss of efficiency: folds may take more than linear time to evaluate. Hinze introduced efficient generalised folds to counter this inefficiency, but did so in a pragmatic way: he did not provide categorical or equivalent underpinnings, so did not get the associated universal properties for manipulating folds. We combine the efficiency of Hinze’s construction with the powerful reasoning tools of Bird and Paterson’s.