O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

Haskell - Syntax in Functions

FONTALVO ROMERO EDUARDO JOSÉ Espanhol

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

Informações

Descrição
Mapa Capitulo 4
Visualizações
37
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?