GoConqr has a new look! Let us know what you think.

Mind map

Haskell - Syntax in Functions

FONTALVO ROMERO EDUARDO JOSÉ Spanish

Map content

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

Information

Description
Mapa Capitulo 4
Views
37
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?