type a = [(Int,Int,Int,Int)]
fun:: a -> Int
func [a,b,c,d] = ?
I have a list of tuples like this what i required is to apply list comprehensions or pattern matching .. example taking sum or filter only divide 2 numbers … i just want a start how to access values and or a list comprehension to this List of Tuples
To sum up the
as, use something like this:Also note that a type alias must begin with an upper case letter. Lower case letters are used for type variables.