Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --własna wersja ++ (łączenie list) todo
- mergeList :: [a] -> [a] -> [a]
- mergeList [] [] = []
- mergeList (x:xs) [] = (x:xs)
- mergeList [] (x:xs) = (x:xs)
- mergeList (x:xs) (y:ys) = last xs:(y:ys) -> robi tylko to że dodaje ostatni element z 1szej listy na pierwsze miejsce w 2giej liście i zwraca taką "połączoną" listę
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement