Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. bubbleSortList :: [ Int ] -> [ Int ]
  2. bubbleSortList [] = []
  3. bubbleSortList (x:xs) = stufe (foldl naechster (x,[]) xs)
  4. where
  5. naechster(y,t) x = (min x y, max x y :t)
  6. stufe(x,t) = x : bubbleSortList t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement