Utilize este identificador para referenciar este registo: https://hdl.handle.net/1822/38994

TítuloGeneric point-free lenses
Autor(es)Pacheco, Hugo
Cunha, Alcino
Palavras-chavePoint-free
Bidirectional transformations
Lenses
Recursion patterns
Inductive types
Data2010
EditoraSpringer Verlag
RevistaLecture Notes in Computer Science
Resumo(s)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” using explicit recursion.
TipoArtigo em ata de conferência
URIhttps://hdl.handle.net/1822/38994
ISBN978-3-642-13320-6
DOI10.1007/978-3-642-13321-3_19
ISSN0302-9743
Arbitragem científicayes
AcessoAcesso aberto
Aparece nas coleções:HASLab - Artigos em atas de conferências internacionais (texto completo)

Ficheiros deste registo:
Ficheiro TamanhoFormato 
828.pdf384,97 kBAdobe PDFVer/Abrir

Partilhe no FacebookPartilhe no TwitterPartilhe no DeliciousPartilhe no LinkedInPartilhe no DiggAdicionar ao Google BookmarksPartilhe no MySpacePartilhe no Orkut
Exporte no formato BibTex mendeley Exporte no formato Endnote Adicione ao seu ORCID