Im practicing recursion on Haskell and need to do concat method with own impelentation on a nested list.
I've tried
myConcat :: [[a]] -> [a]
myConcat [[]] = []
myConcat ((x:xs)) = x : myConcat ((xs))
But it doesnt seem to work.
myConcat [[1,2],[3,4,5],[6]] == [1,2,3,4,5,6]
This is the goal.
The main problem is that i dont really know how to work with nested lists.
xis a list, you can not here usex : ..., unless you again want to create a list of lists.