a = [ 1, 2, 3] a [1,2,3]
b = [ 3, 4, 5] b [3,4,5]
c = [a ,b] c [[1,2,3],[3,4,5]]
a !! 2 (Just 3)
a !! 2 (Just 3)
a !! 1 (Just 2)
c !! 2 Nothing
c !! 1 (Just [3,4,5])
c !! 1 !! 0 Error found: in module $PSCI at line 1, column 1 - line 1, column 11
Could not match type
Maybe
with type
Array
while trying to match type Maybe (Array Int) with type Array t0 while checking that expression (index c) 1 has type Array t0 in value declaration it
where t0 is an unknown type