Mindmap
SecondPart_Types

Mind map: types in Haskell
Inhalt der Mindmap
SecondPart_Types
What is this?
- Typy is a kind of label that every expression has.
- Char
- Stands for Charater.
- 'a'
- 'hello'
- Stands for Charater.
- Bool
- Is a boolean type, have only two values
- True
- False
- Is a boolean type, have only two values
- Int
- stands for integers numbers with range -2147483648 to 2147483647
- Float
- stands for real floating point numbers
- Double
- is a real floating point with double the precision
- Char
- Typy is a kind of label that every expression has.
Variables
- the type variables are used to return any type of a function
Typeclass
- A typeclass defines a behavior to a type
- all 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
- Enum
- Eq
- all 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
- Mindmap am SecondPart_Types, erstellt von CUERVO ARDILA ANDRES FELIPE am 20/02/2018.
- Erstellt von
- CUERVO ARDILA ANDRES FELIPE
- Aufrufe
- 9
- Bewertung