Mapa mental
secondPart_<recursion>
Conteúdo do mapa
secondPart_<recursion>
Recursion is actually a function definition function in which it is used in the function's own function
base case
- is a scenario in which the application of a recursion does not make sense
limit condition
- It is very important if you want your function to finish
maximum
- ord
- return the most bigger
- ord
Quicksort
- quicksort :: (Ord a) => [a] -> [a] quicksort [] = [] quicksort (x:xs) = let smallerSorted = quicksort [a | a <- xs, a <= x] biggerSorted = quicksort [a | a <- xs, a > x] in smallerSorted ++ [x] ++ biggerSorted
- in other programming languages it requires more code lines
take
- recursive case that takes the elements of a list
Informações
- Descrição
- Mapa Mental sobre secondPart_<recursion>, criado por Nicolas Acosta em 27-02-2018.
- Criado por
- Nicolas Acosta
- Visualizações
- 1
- Avaliação