This makes sense:
test :: [[Int]]
test = [[]]
main = print test
But why does this compile (and run)?
test :: [[Int]]
test = []
main = print test
[[Int]] is list of lists (of Int's) and
[[]] - list with one empty list inside[] - empty listIf 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