Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orden Superior: Mejorar el mensaje de error cuando se consulta un predicado inexistente #34

Open
mmatos opened this issue Feb 18, 2019 · 0 comments

Comments

@mmatos
Copy link
Contributor

mmatos commented Feb 18, 2019

Dada esta solución parcial de un ejercicio:

tiempoTotalVuelo(Vuelo, TiempoTotal):-
  vuelo(Vuelo, _, Destinos),
  findall(Tiempo, (member(Destino, Destinos), duracion(Destino, Tiempo)), Tiempos),
  sumlist(Tiempos, TiempoTotal).

donde no se define el predicado duracion/2 que se usa dentro del findall, si se envía la solución Mumuki muestra:

Revisá el predicado ''/1. Parece que intentaste usar duracion/2, pero no existe. ¿Habrás escrito mal su nombre o pasado una cantidad incorrecta de argumentos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant