How to declare a parameter as function that can have 2 or 3 parameters in Haskell?
I have to make a repetir Function that allows to replicate any function, but we do have functions with 1 parameter and others with 2, so repetir won't work with 1-parameter functions as how is defined rigth now.
sacar :: Bolita -> Tablero -> Tablero
sacar bolita miTablero = accionarEnCelda bolita miTablero restarBolita
obtenerIndice :: (Int,Int) -> Int
obtenerIndice coordenadas = fst coordenadas * 3 + snd coordenadas
repetir :: (a -> b -> c) -> Int -> Tablero -> Tablero