An investigation of the laws of traversals

17Citations
Citations of this article
36Readers
Mendeley users who have this article in their library.

Abstract

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.

Cite

CITATION STYLE

APA

Jaskelioff, M., & Rypacek, O. (2012). An investigation of the laws of traversals. In Electronic Proceedings in Theoretical Computer Science, EPTCS (Vol. 76, pp. 40–49). Open Publishing Association. https://doi.org/10.4204/EPTCS.76.5

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free