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

Mapa mental

Types and Typeclasses

Diego Alvarez Informática Inglés

Contenido del mapa

Types and Typeclasses

  1. type

    • like a label
    • Bool
    • String || [Char]
    • Don't know an expression type?
      • : t 'a'
        • 'a' :: Char
          • ::
            • means has type of
    • 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
  2. 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

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?