Ajude a dar forma ao GoConqr. O que a gente deve adicionar?

Mapa mental

Types and Typeclasses

Diego Alvarez Informática Inglês

Conteúdo do 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

Informações

Descrição
Informática Mapa Mental sobre Types and Typeclasses, criado por Diego Alvarez em 27-02-2018.
Criado por
Diego Alvarez
Visualizações
1
Avaliação

Mais sobre Data Types and Typeclasses

Fale Conosco

Sobre o que é sua mensagem?

O que a gente deve adicionar?