I want to get the max and min value out of a List as a tuple by using recursion. I tried it with this code below and cant really figure out why it does not work. I would really appreciate a small hint what my error in reasoning is. Thanks much
seekMaxMin :: [Double] -> (Double,Double)
seekMaxMin [] = (0,0)
seekMaxMin [x] = (x,x)
seekMaxMin (x:rest) = (max x(seekMaxMin rest), min x(seekMaxMin rest))