Mapa mental
Function Syntax
Contenido del mapa
Function Syntax
Pattern matching
- Checked from top to bottom
- Allows recursivity
- Must have one general for fails
- _ ignores that item
- as patterns
- something@(x:y:z)
- Keeps the whole thing for use
- something@(x:y:z)
Guards
- Validate properties
- Have to implement "otherwise"
- Can implement "where"
- For don't repeat calculs/validations
- After guards
- Could be more than 1 variable
- Could implement pattern matching
- Syntactic constructs
Let
- Local variables
- Multiple separated by ";"
- Expresions
- Could be used in
- Lists
- Tuples
- Local variables
Case of
- Evaluate posible results
- Pattern matching
- Evaluate posible results
Información
- Descripción
- Mapa Mental sobre Function Syntax, creado por Nestor Ignacio Bernal Morales el 19/02/2018.
- Creado por
- Nestor Ignacio Bernal Morales
- Visitas
- 0
- Valoración