Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -1,7 +1,7 @@
|
|||
merge [] ys = ys
|
||||
merge xs [] = xs
|
||||
merge xs@(x:xs') ys@(y:ys') | x <= y = x : merge xs' ys
|
||||
| otherwise = y : merge xs ys'
|
||||
merge [] ys = ys
|
||||
merge xs [] = xs
|
||||
merge xs@(x:xt) ys@(y:yt) | x <= y = x : merge xt ys
|
||||
| otherwise = y : merge xs yt
|
||||
|
||||
split (x:y:zs) = let (xs,ys) = split zs in (x:xs,y:ys)
|
||||
split [x] = ([x],[])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue