Mind map
Function Syntax
Map content
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
Information
- Description
- Mind Map on Function Syntax, created by Nestor Ignacio Bernal Morales on 19/02/2018.
- Created by
- Nestor Ignacio Bernal Morales
- Views
- 0
- Rating