Created
December 2, 2010 22:12
-
-
Save alecbz/726188 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
merge :: (Ord a) => [a] -> [a] -> [a] | |
merge [] y = y | |
merge x [] = x | |
merge xxs@(x:xs) yys@(y:ys) | |
| x < y = x : merge xs yys | |
| otherwise = y : merge xxs ys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment