Mapa mental
SecondPart_SyntaxInFunctions

Conteúdo do mapa
SecondPart_SyntaxInFunctions
Pattern matching
- Allows all types of data but errors occur when the pattern receives an unexpected value
- Head Tail Pattern (x:xs) where x is the head and xs is the tail
As Patterns
- they are useful to decompose something by referring to something as a whole all@ (x:_)
Guards
- it's like a Boolean expression, when it evaluates True it returns the body of the function and when it evaluates False, it passes to the next guard
- Is similar to the If else ... if else or case in Java
- otherwise, it is the real case if you do not find one previously in the guard
- it's like a Boolean expression, when it evaluates True it returns the body of the function and when it evaluates False, it passes to the next guard
where
- A equation is linked to a variable so that it does not have to be repeated in a program at the end of the function
- A equation is linked to a variable so that it does not have to be repeated in a program at the end of the function
Let it be
- is similar to Where, the difference is that the Let can link in anywhere and acts on itself
- is similar to Where, the difference is that the Let can link in anywhere and acts on itself
Imagens e arquivos do mapa
Informações
- Descrição
- Programacion Funcional Mapa Mental sobre SecondPart_SyntaxInFunctions, criado por Daniel Velez em 27-02-2018.
- Criado por
- Daniel Velez
- Visualizações
- 0
- Histórico
-
- Criado por CUERVO ARDILA ANDRES FELIPE · 26 fev 2018
- Copiado por Daniel Velez · 27 fev 2018
- Avaliação
