Back to Search Start Over

First-class patterns.

Authors :
BARRY JAY
DELIA KESNER
Source :
Journal of Functional Programming; Mar2009, Vol. 19 Issue 2, p191-225, 35p
Publication Year :
2009

Abstract

AbstractPure pattern calculus supports pattern-matching functions in which patterns are first-class citizens that can be passed as parameters, evaluated and returned as results. This new expressive power supports two new forms of polymorphism. Path polymorphism allows recursive functions to traverse arbitrary data structures. Pattern polymorphism allows patterns to be treated as parameters which may be collected from various sources or generated from training data. A general framework for pattern calculi is developed. It supports a proof of confluence that is parameterised by the nature of the matching algorithm, suitable for the pure pattern calculus and all other known pattern calculi. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
09567968
Volume :
19
Issue :
2
Database :
Complementary Index
Journal :
Journal of Functional Programming
Publication Type :
Academic Journal
Accession number :
36848007
Full Text :
https://doi.org/10.1017/S0956796808007144