I am trying to implement a simple merge, without the use of anything pre-defined. Can any one point me in right direction, would i use list comp? or recurisive etc?
any tips welcome.. so far i got
merge:: [a] -> [a] -> [a]
mergexs [] = xs
merge [] ys = ys
merge (x:xs) (y:ys) =
If by “merge” you meant “splicing” the list together like below:
You could say: