Mapa mental
Haskell
Contenido del mapa
Haskell
It is a functional programming language
- Several operators can be used
- When it is a negative number it is recommended to use ()
- Each operator is executing a function
- Known as infix function
- Most functions that do not use numbers are usually prefixed
- You can compare elements but they must be of the same type of data
- The inequality test is / =
- Several operators can be used
The ghci statement must be used for its correct compilation
When using the if condition, it is mandatory to use
To call a function write the name of the function and the parameters separated by spaces
- you can use functions with operators
- The functions can be used infixed like the operators
- you can call a function in the call to another
- bar (barra 3)
- after creating the function in a text file it runs like this ":l functionName.hs"
- this operation should be used when changes are made
- The functions should not be in a particular order
- Functions can not start with capital letters
The lists are the most used data structure
- a list must be of a data type for example a list of integers
- Ranks can be used to fill lists for example [1..20]
- you can specify how a range is increased
- Do not use floating numbers in list ranges
- You can create infinite lists
- Comprehension lists that are used to use a range of a function
- Ranks can be used to fill lists for example [1..20]
- To join two lists is used ++
- The chains are lists
- the operator can be used: to add to the start of a list
- these methods can be used in lists head, tail, last and init
- a list can contain lists
- you can compare lists with the same operators
- a list must be of a data type for example a list of integers
tuples can have a combination of several types
Información
- Descripción
- Mapa Mental sobre Haskell, creado por CASTILLO ZAMBRANO LUIS FELIPE el 14/02/2018.
- Creado por
- CASTILLO ZAMBRANO LUIS FELIPE
- Visitas
- 2
- Valoración