Some New Approaches in Functional Programming Using Algebras and Coalgebras

  • Authors:
  • Viliam Slodičák;Pavol Macko

  • Affiliations:
  • Department of Computers and Informatics, Technical University of Košice, Košice, Slovak Republic;Department of Computers and Informatics, Technical University of Košice, Košice, Slovak Republic

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

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.