Ayúdanos a dar forma a GoConqr. ¿Qué deberíamos añadir?

Mapa mental

SecondPart_Types

CUERVO ARDILA ANDRES FELIPE Español

Mind map about types in Haskell: what is this, variables and typeclass

Mind map: types in Haskell

Contenido del mapa

SecondPart_Types

  1. What is this?

    • Typy is a kind of label that every expression has.
      • Char
        • Stands for Charater.
          • 'a'
          • 'hello'
      • Bool
        • Is a boolean type, have only two values
          • True
          • False
      • 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
  2. Variables

    • the type variables are used to return any type of a function
  3. 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
    • Class constrain
      • everything before => is a class constraint that belongs to the class and takes its behaviors

Información

Descripción
Mapa Mental sobre SecondPart_Types, creado por CUERVO ARDILA ANDRES FELIPE el 20/02/2018.
Visitas
9
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?