Difference between revisions of "FP Homework 4"
Jump to navigation
Jump to search
(Created page with "== Arrays and vectors in Haskell== == 1 - Bubble sort == * Create a function, that sorts an array using quicksort algorithm. <syntaxhighlight lang="Haskell">quickSort :: Ar...") |
(No difference)
|
Revision as of 13:04, 4 November 2022
Arrays and vectors in Haskell
1 - Bubble sort
- Create a function, that sorts an array using quicksort algorithm.
quickSort :: Array Int Int -> Array Int Int
ghci> elems $ quickSort $ listArray (0,5) [8,4,9,6,7,1]
[1,4,6,7,8,9]