GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Haskell - Syntax in Functions

FONTALVO ROMERO EDUARDO JOSÉ Spanisch

Inhalt der Mindmap

Haskell - Syntax in Functions

  1. Pattern matching

    • we need to specify the patterns to which some data should conform
      • We can't use ++ in pattern matches
    • can define separate function bodies for different patterns
  2. Recursion

  3. We should use catch-all pattern

    • Unexpected inputs
  4. Always need to match the pattern with the list comprehensions

  5. Is possible modify the default functions

  6. Guards

    • guards are a way of testing whether some property of a value (or several of them) are true or false
    • Guards are indicated by pipes that follow a function's name and its parameters
    • Works like an if but they are more readable
  7. Let

    • bindings let you bind to variables anywhere
    • Are expressions of themselves
  8. Case expressions

    • Is possible evaluate expressions based on the possible cases of the value of a variable
    • Are useful for pattern matching against something in the middle of an expression

Informationen

Beschreibung
Mapa Capitulo 4
Aufrufe
37
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck