toLatex (Function name xs) = name ++ "(" ++ args ++ ")"
    where args = intercalate ", " $ map toLatex xs
toLatex (Function name xs) = name ++ "(" ++ args ++ ")"
    where args = intercalate ", " $ map toLatex xs
toLatex (Function name xs) = name ++ "(" ++ args ++ ")"
    where args = intercalate ", " $ map toLatex xs