• biuro (at) softcream.pl
  • +48 22 867 80 00

Daily Archives: 21 października 2017

  • -

Polymorphism in Haskell

Tags : 

We surveyed the different kinds of polymorphism in a previous module. Haskell implements two kinds:

1. Parametric polymorphism (usually just called “polymorphism” in functional languages), in which a single function definition is used for all types of arguments and results.
For example, consider the length function, which returns the length of any finite list.

2. Overloading, in which the same name refers to different functions depending upon the type.
For example, consider the (+) function, which can add any supported number.
We looked at parametric polymorphism is a previous module. This section examines overloading

Organization of Programming Languages Introduction to Functional Programming Using Haskell

 


Szukaj

Kalendarz

październik 2017
P W Ś C P S N
« wrz   lis »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Jeśli chcesz podzielić się z nami swoimi uwagami odnośnie naszych usług skorzystaj z zakładki Kontakt !