Polymorphic types are types that are “universally quantified in some way over all types“. What a mouthful. Basically, it makes it so we can ...
Polymorphic types are types that are “universally quantified in some way over all types“. What a mouthful. Basically, it makes it so we can use a certain variable/bit of data without worry about the type conflicts. Recursion on the other hand, refers to a function that calls its self again and again. A simple example,
The post Haskell: Polymorphic Types (Using a, [a]) & Basic Recursion Introduction appeared first on True Miller.
Haskell: Polymorphic Types (Using a, [a]) & Basic Recursion Introduction
COMMENTS