Mindmap
secondPart_TypesAndTypeclasses
Inhalt der Mindmap
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
Informationen
- Beschreibung
- Programacion Funcional Mindmap am secondPart_TypesAndTypeclasses, erstellt von Daniel Velez am 27/02/2018.
- Erstellt von
- Daniel Velez
- Aufrufe
- 0
- Verlauf
-
- Erstellt von CUERVO ARDILA ANDRES FELIPE · 20 Feb 2018
- Kopiert von Daniel Velez · 27 Feb 2018
- Bewertung
Mehr zu Data Types and Typeclasses