Open SergioMartellotti opened 1 week ago
existeTesoroEn (o:objs) = esTesoro o || hayAlMenosUnTesoro objs
esTesoro :: Objeto -> Bool esTesoro Tesoro = True esTesoro _ = False
Esta es la forma de ver si hay un Tesoro, no necesitamos mandar dos constructores a la subtarea.
existeTesoroEn (o:objs) = esTesoro o || hayAlMenosUnTesoro objs
esTesoro :: Objeto -> Bool esTesoro Tesoro = True esTesoro _ = False
Esta es la forma de ver si hay un Tesoro, no necesitamos mandar dos constructores a la subtarea.