Mind map
HASKELL
Map content
HASKELL
Purely funcional programming language
- Statically typed
- Uses ghci
- His extension is .hs
Functions
- Prefix
- Explicit call
- infix
- declaration then parameters then =
- Allways starts with lowercase
- Definition
- No parameter(s)
- Cycle
- Repeat
- Prefix
Control statements
- Operators < > = ==
- The else is mandatory
- The function always performs a return
Data structures
- Lists
- Strings
- !! for get something on an index
- Are homogeneous
- Declaration
- Square brackets and comas
- Concatenated by ++
- It's not good for long lists
- Es mejor usar :
- Agrega al principio
- Functions
- head
- tail
- Last
- Init
- length
- null
- reverse
- take
- drop n elements
- maximum minimum
- list comprehension
- Build sets
- [output_function|input_set,predicate]
- Predicate = filtering
- Could be more than 1
- Predicate = filtering
- [output_function|input_set,predicate]
- Build sets
- Strings
- Lists
infers the data types
Ranges
- Enumerable things
- Numbers
- [1..20]
- [2,4..20]
- [20..1]
- Integers/Decimals
- [1..20]
- Letters
- ['A'..'Z']
- Numbers
- Enumerable things
Tuples
- Fixed size
- Don't have to be homogeneous
- In parenthesis inside swuared brakets
- [(2,2),(3,3),(4,4)]
- Functions
- Fst
- snd
- zip
- list of pairs
Information
- Description
- Mind Map on HASKELL, created by Nestor Ignacio Bernal Morales on 19/02/2018.
- Created by
- Nestor Ignacio Bernal Morales
- Views
- 0
- Rating
More on Functional Programming and Haskell