首页    期刊浏览 2024年09月20日 星期五
登录注册

文章基本信息

  • 标题:An Investigation of the Laws of Traversals
  • 本地全文:下载
  • 作者:Mauro Jaskelioff ; Ondrej Rypacek
  • 期刊名称:Electronic Proceedings in Theoretical Computer Science
  • 电子版ISSN:2075-2180
  • 出版年度:2012
  • 卷号:76
  • 页码:40-49
  • DOI:10.4204/EPTCS.76.5
  • 出版社:Open Publishing Association
  • 摘要: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.
国家哲学社会科学文献中心版权所有