-- quicksort using a split function (demonstrating where/let declarations): split _ [] = ([],[]) split e (x:xs) | e>=x = (x:l,r) | e