Mind map
secondPart_<recursion>
Map content
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
Information
- Description
- Mind Map on secondPart_<recursion>, created by Nicolas Acosta on 27/02/2018.
- Created by
- Nicolas Acosta
- Views
- 1
- Rating