作者
Hugo Pacheco, Alcino Cunha
发表日期
2010
期刊
Mathematics of Program Construction
页码范围
331-352
出版商
Springer Berlin/Heidelberg
简介
Lenses are one the most popular approaches to define bidirectional transformations between data models. A bidirectional transformation with view-update, denoted a lens, encompasses the definition of a forward transformation projecting concrete models into abstract views, together with a backward transformation instructing how to translate an abstract view to an update over concrete models. In this paper we show that most of the standard point-free combinators can be lifted to lenses with suitable backward semantics, allowing us to use the point-free style to define powerful bidirectional transformations by composition. We also demonstrate how to define generic lenses over arbitrary inductive data types by lifting standard recursion patterns, like folds or unfolds. To exemplify the power of this approach, we “lensify” some standard functions over naturals and lists, which are tricky to define directly “by-hand …
引用总数
2010201120122013201420152016201720182019202020212022202344885342112
学术搜索中的文章
H Pacheco, A Cunha - … of Program Construction: 10th International Conference …, 2010