Created
December 16, 2018 05:21
-
-
Save WhiteCat6142/a3270468cbf829200b7f66acd048b1a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bsort=foldr bs [] | |
where bs x []=[x] | |
bs x (y:ys)|x<=y =(x:y:ys) | |
|otherwise =(y:bs x ys) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment