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
12585887
Haskell - Starting Out
Description
Mapa del Capitulo 2
No tags specified
capitulo2
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
23
0
0
Resource summary
Haskell - Starting Out
Haskell is a functional lenguage
Is very explicit in his functions
Can't combine different types of data
e.g. 5 + True
Haskell have many functions already defined
The functions have the value not the variables
Functions are defined in a similar way that they are called
We use ' to either denote a strict version of a function
We can name our functions
The functions can't begin with uppercase letters
Haskell allows to work with lists
We can name our lists
Strings are just lists of characters
['H','E','L','L','O']
Can put to lists together with ++ or :
When use ++ Haskell walks through the whole list on the left side of the ++
To put something at the beginning of a list use the :
In Haskell the lists have a particular structure
The head is the first element in the list
The tail is the all list less the head
Last is the last element in the list
Init is the all list less the last element in the list
The lists can be created starting from ranges or limits
e.g. [1..20]
You can also use ranges to make infinite lists by just not specifying an upper limit.
You can create lists comprehension
hey're normally used for building more specific sets out of general sets
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
EXAMEN SEMANAL DE ORTOPEDIA Y TRAUMATOLOGIA
dr_nevarez
Capítulo 2: La evolución del pensamiento administrativo
Alejandro Lee
PASO 10
Paco Tur Fornés
Goniometría
Michelle Guamaní
EL GOBIERNO DE CARLOS SALINAS
ggomez761
Cuenta: registro detallado de los cambios habidos en un activo, pasivo o cáapital contable.
marioleivaorigin
PASO 12
Paco Tur Fornés
PASO 13
Paco Tur Fornés
Teoría e historiografía del arte _hecho por Emely B
Emely Baca
Morfogenesis del objeto de uso
Laura Avendaño
LA CIUDAD LETRADA-CAPITULO II
Paula Daniela Antolinez Murillo
Browse Library