Gestalte GoConqr mit. Was sollen wir als Nächstes hinzufügen?

Mindmap

SecondPart_Types

CUERVO ARDILA ANDRES FELIPE Spanisch

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

Mind map: types in Haskell

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am SecondPart_Types, erstellt von CUERVO ARDILA ANDRES FELIPE am 20/02/2018.
Aufrufe
9
Bewertung

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?