# Haskell :: Finding Min and Max for a set of Tuple

Here the code goes:

fFindMinMax :: (Ord a, Ord b, Ord c, Ord d) => [(a, b, c, d)] -> (Double,Double,Double,Double,Double,Double)

fFindMinMax [(_, x, y, z)] = (minimum x, maximum x, minimum y, maximum y, minimum z, maximum z)

And the errors come for maximum x, maximum y and maximum z.First attempt

First of all, your current pattern:

fFindMinMax [(_, x, y, z)] =.