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É
over 6 years ago
15
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
Tectonic Hazards flashcards
katiehumphrey
Themes in Pride and Prejudice
laura_botia
CUMULATIVE FREQUENCY DIAGRAMS
Elliot O'Leary
Edexcel Additional Science Chemistry Topics 1+2
hchen8nrd
Matters of Life and Death - Edexcel GCSE Religious Studies Unit 3
nicolalennon12
GCSE Maths: Algebra & Number Quiz
Andrea Leyden
Biology - B2 - AQA - GCSE - Exam Style Questions
Josh Anderson
Browse Library