|
|
|
|
|
by drwh0
6400 days ago
|
|
haskell: quicksort: qsort [] = [] qsort (x:xs) = qsort (filter (<= x) xs) ++ [x] ++ qsort (filter (> x) xs) fib sequence: fiblist = 0 : 1 : (zipWith (+) fiblist (tail fiblist)) but don't worry, with the rate at which the java kitchen sink swallows more paradigms, this will likely compile in java8 or something |
|