null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
12587117
Haskell - Syntax in Functions
Description
Mapa Capitulo 4
No tags specified
capitulo4
Mind Map by
FONTALVO ROMERO EDUARDO JOSÉ
, updated more than 1 year ago
More
Less
Created by
FONTALVO ROMERO EDUARDO JOSÉ
almost 7 years ago
16
0
0
Resource summary
Haskell - Syntax in Functions
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
Recursion
We should use catch-all pattern
Unexpected inputs
Always need to match the pattern with the list comprehensions
Is possible modify the default functions
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
Let
bindings let you bind to variables anywhere
Are expressions of themselves
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
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
CONOCIMIENTO
Cesar Andres Serrano Torres
Capítulo 4: Ética y responsabilidad social
Alejandro Lee
Expresión Sonora
roo_0506
condicionamiento clasico mecanismos
cheila vergara
Health and Safety Quiz
lynseyrogers23
Mind Map 1_1
n.marment
Geography - Case Studies
jacobhatcher97
CHARACTERS IN OF MICE AND MEN
jessicasusanevans
Social Influence
olimcconnell
PSBD TEST 1
Mwebaze Green
Část 4.
Gábi Krsková
Browse Library