Gestalte GoConqr mit. Was sollen wir als Nächstes hinzufügen?

Mindmap

secondPart_<recursion>

Nicolas Acosta Spanisch

Inhalt der Mindmap

secondPart_<recursion>

  1. Recursion is actually a function definition function in which it is used in the function's own function

  2. base case

    • is a scenario in which the application of a recursion does not make sense
  3. limit condition

    • It is very important if you want your function to finish
  4. maximum

    • ord
      • return the most bigger
  5. 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
  6. take

    • recursive case that takes the elements of a list

Informationen

Beschreibung
Mindmap am secondPart_<recursion>, erstellt von Nicolas Acosta am 27/02/2018.
Erstellt von
Nicolas Acosta
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?