Artículo
An investigation of the laws of traversals
Fecha de publicación:
02/2012
Editorial:
Open Publishing Association
Revista:
Electronic Proceedings in Theoretical Computer Science
ISSN:
2075-2180
Idioma:
Inglés
Tipo de recurso:
Artículo publicado
Clasificación temática:
Resumen
Traversals of data structures are ubiquitous in programming. Consequently, it is important to be able to characterise those structures that are traversable and understand their algebraic properties. Traversable functors have been characterised by McBride and Paterson as those equipped with a distributive law over arbitrary applicative functors; however, laws that fully capture the intuition behind traversals are missing. This article is an attempt to remedy this situation by proposing laws for characterising traversals that capture the intuition behind them. To support our claims, we prove that finitary containers are traversable in our sense and argue that elements in a traversable structure are visited exactly once.
Palabras clave:
TRAVERSAL
,
DISTRIBUTIVE LAW
,
FUNCTIONAL PROGRAMMING
Archivos asociados
Licencia
Identificadores
Colecciones
Articulos(CIFASIS)
Articulos de CENTRO INT.FRANCO ARG.D/CS D/L/INF.Y SISTEM.
Articulos de CENTRO INT.FRANCO ARG.D/CS D/L/INF.Y SISTEM.
Citación
Jaskelioff, Mauro Javier; Rypacek, Ondrej; An investigation of the laws of traversals; Open Publishing Association; Electronic Proceedings in Theoretical Computer Science; 76; 2-2012; 40-49
Compartir
Altmétricas