article Open access

CoCaml: Functional Programming with Regular Coinductive Types

  • Fundamenta Informaticae
  • IOS Press
Research footprint

At a glance

Citations
23
References
27
Comments
0
Paper overview

Öz

Functional languages offer a high level of abstraction, which results in programs that are elegant and easy to understand. Central to the development of functional programming are inductive and coinductive types and associated programming constructs, such as pattern-matching. Whereas inductive type s have a long tradition and are well supported in most languages, coinductive types are subject of more recent research and are less mainstream. We present CoCaml, a functional programming language extending OCaml, which allows us to define recursive functions on regular coinductive datatypes. These functions are defined like usual recursive functions, but parameterized by an equation solver. We present a full implementation of all the constructs and solvers and show how these can be used in a variety of examples, including operations on infinite lists, infinitary γ-terms, and p-adic numbers.

Record transparency

Publication details

DOI
10.3233/fi-2017-1473
OpenAlex
W2592977449
Document type
article
Language
EN
Source
Fundamenta Informaticae
Last metadata update
Community

Comments

Oturum Açın to join the discussion.

  1. No comments yet. Start the discussion.