Mapa mental
Types and Typeclasses
Contenido del mapa
Types and Typeclasses
type
- like a label
- Bool
- String || [Char]
- Don't know an expression type?
- : t 'a'
- 'a' :: Char
- ::
- means has type of
- ::
- 'a' :: Char
- : t 'a'
- Int
- Bounded
- Integer
- Not bounded
- Float
- single precision.
- Double
- double precision!
- Char
- variable
- can be of any type
- are polymorphic functions
- for
- functions
- Good practice
- functionName :: <type> -> <type> -> <rtype>
- <rtype> = return type
- <type> = parameter type
- with
- could have class constraint
- is everything before the =>
- show a
- is everything before the =>
- functions
typeclasse
- sort of interface that defines some behavior
- Eq
- Ord
- Show
- Read
- Enum
- Bounded
- Num
- Integral
- Floating
Información
- Descripción
- Informática Mapa Mental sobre Types and Typeclasses, creado por Diego Alvarez el 27/02/2018.
- Creado por
- Diego Alvarez
- Visitas
- 1
- Valoración
Más sobre Data Types and Typeclasses