Mind map
secondPart_TypesAndTypeclasses
Map content
secondPart_TypesAndTypeclasses
Definition
- Type can be a label that differences the data
- Char: 'a'
- Bool: true or false
- Int: stands for integers numbers with range -2147483648 to 2147483647
- Float: stands for real floating point numbers
- Double: a floating point with decimals
- Type can be a label that differences the data
Typeclass
- A typeclass defines a behavior to a type
- Types belongs to Eq, Ord and Show classes
- Eq
- This class allows comparisons for equality
- Ord
- Ord covers all the standard comparing functions such as >, <, >= and <=.
- Show
- Convert any type to String
- Eq
- Types belongs to Eq, Ord and Show classes
- Class constrain
- everything before => is a class constraint that belongs to the class and takes its behaviors
- A typeclass defines a behavior to a type
Information
- Description
- Programacion Funcional Mind Map on secondPart_TypesAndTypeclasses, created by Daniel Velez on 27/02/2018.
- Created by
- Daniel Velez
- Views
- 0
- History
-
- Created by CUERVO ARDILA ANDRES FELIPE · Feb 20, 2018
- Copied by Daniel Velez · Feb 27, 2018
- Rating
More on Data Types and Typeclasses