All I want to do is what I ask. The type signature of the function should be this:
flatten::[[[Int]]] -> [[Int]]
I tried to search some flatten code but they define new types and that confuses me. Any help? Thanks in advance.
You are looking for
concat :: [[a]] -> [a]
In your use case, the element type happens to be [Int]
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With