Closed fidel-ml closed 2 years ago
este lo cambie y tengo duda si esta correción es sobre mi cambio, o el original. Ahora lo hice así:
sinRepetirTripulantes :: [Tripulante] -> [Tripulante]
sinRepetirTripulantes [] = []
sinRepetirTripulantes (t:ts) = agregarSiFalta t (sinRepetirTripulantes ts)
agregarSiFalta :: Tripulante -> [Tripulante] -> [Tripulante]
agregarSiFalta t ts = if pertenece t ts
then ts
else t : ts
Esta ahora está bien. Pero si mirás en el repo, no es lo que dice...
tal vez no lo había subido, pero es el que tiene.
Este error es EXACTAMENTE el mismo que corregimos en la Pr3 en clase para
sinProyectosRepetidos
... :( NO HAY QUE REPETIR LOS MISMOS ERRORES.