English

Egison: Non-Linear Pattern-Matching against Non-Free Data Types

Programming Languages 2015-06-16 v1

Abstract

This paper introduces the Egison programming language whose feature is strong pattern-matching facility against not only algebraic data types but also non-free data types whose data have multiple ways of representation such as sets and graphs. Our language supports multiple occurrences of the same variables in a pattern, multiple results of pattern-matching, polymorphism of pattern-constructors and loop-patterns, patterns that contain "and-so-forth" whose repeat count can be changed by the parameter. This paper proposes the way to design expressions that have all these features and demonstrates how these features are useful to express programs concise. Egison has already implemented in Haskell.

Keywords

Cite

@article{arxiv.1506.04498,
  title  = {Egison: Non-Linear Pattern-Matching against Non-Free Data Types},
  author = {Satoshi Egi},
  journal= {arXiv preprint arXiv:1506.04498},
  year   = {2015}
}

Comments

9 pages. arXiv admin note: text overlap with arXiv:1407.0729

R2 v1 2026-06-22T09:53:33.296Z