I'd suggest changing the wording, i.e. when the exercise says 'returning' - apart from being not often used for Prolog, I did not think write/1 was the appropriate predicate to use. (I thought it should unify with X).
Apart from that, maybe more Prolog focused lingo could prevent confusion.
I'd suggest changing the wording, i.e. when the exercise says 'returning' - apart from being not often used for Prolog, I did not think
write/1
was the appropriate predicate to use. (I thought it should unify with X). Apart from that, maybe more Prolog focused lingo could prevent confusion.