Some New Approaches in Functional Programming Using Algebras and Coalgebras

https://doi.org/10.1016/j.entcs.2011.11.037Get rights and content
Under a Creative Commons license
open access

Abstract

In our paper we deal with the expressing of recursion and corecursion in functional programming. We discuss about the morphisms which express the recursion or corecursion, respectively. Here we consider especially the catamorphisms, anamorphisms and their composition called the hylomorphisms. The main essence of this work is to describe a new method of programming the function for calculating the factorial by using hylomorphism. We show that using of hylomorphism is an alternative method for the computation of factorial to recursive methods programmed classically. Our new method we describe in action semantics which is a new formal method for the program description.

Keywords

Recursion
duality
hylomorphism
algebra
recursive coalgebras
action semantics

Cited by (0)

1

This work has been supported by VEGA Grant No.1/0015/10: Principles and methods of semantic enrichment and adaptation of knowledge-based languages for automatic software development.