Applying Logical Knowledge
Exercises
- Add the connect/2 predicate to travel.pro
- Experiment with its behavior, both arguments unified, neither,
one or the other.
- Trace all the above configurations, understand how it works,
and see what performance implications there are.
- Try and trace both versions of factorial.
- Add to connect an accumulator that counts the number of
legs in a connection.