Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Haskell - Syntax in Functions

Descripción

Mapa Capitulo 4
FONTALVO ROMERO EDUARDO JOSÉ
Mapa Mental por FONTALVO ROMERO EDUARDO JOSÉ , actualizado hace más de 1 año
FONTALVO ROMERO EDUARDO JOSÉ
Creado por FONTALVO ROMERO EDUARDO JOSÉ hace más de 7 años
24
0
1 2 3 4 5 (0)

Resumen del Recurso

Haskell - Syntax in Functions
  1. Pattern matching
    1. we need to specify the patterns to which some data should conform
      1. We can't use ++ in pattern matches
      2. can define separate function bodies for different patterns
      3. Recursion
        1. We should use catch-all pattern
          1. Unexpected inputs
          2. Always need to match the pattern with the list comprehensions
            1. Is possible modify the default functions
              1. Guards
                1. guards are a way of testing whether some property of a value (or several of them) are true or false
                  1. Guards are indicated by pipes that follow a function's name and its parameters
                    1. Works like an if but they are more readable
                    2. Let
                      1. bindings let you bind to variables anywhere
                        1. Are expressions of themselves
                        2. Case expressions
                          1. Is possible evaluate expressions based on the possible cases of the value of a variable
                            1. Are useful for pattern matching against something in the middle of an expression
                            Mostrar resumen completo Ocultar resumen completo

                            0 comentarios

                            There are no comments, be the first and leave one below:

                            Similar

                            Capítulo 4: Ética y responsabilidad social
                            Alejandro Lee
                            Expresión Sonora
                            roo_0506
                            condicionamiento clasico mecanismos
                            cheila vergara
                            5) Meats & Poultry (and others)
                            John Goalkeeper
                            Test ICFES Inglés Parte 1
                            colrobomoyp
                            La acentuación de diptongos, triptongos e hiatos
                            Elisa Tormo Guevara
                            Ley Orgánica de la Administración Pública Federal.
                            Miguel Guizar
                            FARMACOCINETICA
                            sofia collazos
                            HISTORIA DE LA COMPUTADORA
                            SERGYO DAVID CALDERON QUINTERO
                            Test Estructuras IV: Tipo de estructuras
                            Pedro Landín