ScheffelaarGerman / EstrD2024s2

0 stars 0 forks source link

tp-3 ver hayTesoro #16

Open SergioMartellotti opened 1 week ago

SergioMartellotti commented 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.