Problem Description
-
I have used the following code to to
access list of tuples im not
getting why im getting this error is
… -
also i would like to know if i
provided the execas
mn::[(1,2,3),(6,7,8)]how can i
acess the(6,7,8)?
Pure Function
type rty= [(Int,Int,Int)]
mn::rty->Int
mn (a,b,c) = a
Error Message
Type error in explicitly typed binding
*** Term : (a,b,c)
*** Type : (a,b,c)
*** Does not match : rty
rty is the same as
[(a, b, c)], a list. You are matching against a tuple instead of a list. Maybe what you want is: