¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Haskell - Syntax in Functions

FONTALVO ROMERO EDUARDO JOSÉ Español

Contenido del mapa

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

Información

Descripción
Mapa Capitulo 4
Visitas
37
Etiquetas
capitulo4
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?