Passer à la navigation principale Passer à la recherche Passer au contenu principal

Backtracking iterators

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collection › Contribution à une conférence › Revue par des pairs

8 Citations (Scopus)

Résumé

Iterating over the elements of an abstract collection is usually done in ML using a fold-like higher-order function provided by the data structure. This article discusses a different paradigm of iteration based on purely functional, immutable cursors. Contrary to fold-like iterators, the iteration can be cleanly interrupted at any step. Contrary to imperative cursors (such as those found in C++ and Java libraries) it is possible to backtrack the iterator to a previous step. Several ways to iterate over binary trees are examined and close links with Gérard Huet's Zipper are established. Incidentally, we show the well-known two-lists implementation of functional queues arising from a Zipper-based breadth-first traversal.

langue originaleAnglais
titreProceedings of the ACM SIGPLAN 2006 Workshop on ML
EditeurAssociation for Computing Machinery (ACM)
Pages54-62
Nombre de pages9
ISBN (imprimé)1595934839, 9781595934833
Les DOIs
étatPublié - 16 sept. 2006
Evénement2006 ACM SIGPLAN Workshop on ML, ML 2006 - Portland, OR, États-Unis
Durée: 16 sept. 2006 → 16 sept. 2006

Série de publications

NomProceedings of the ACM SIGPLAN 2006 Workshop on ML
Volume2006

Une conférence

Une conférence2006 ACM SIGPLAN Workshop on ML, ML 2006
Pays/TerritoireÉtats-Unis
La villePortland, OR
période16/09/06 → 16/09/06

Empreinte digitale

Examiner les sujets de recherche de « Backtracking iterators ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation