title: How to create a swap function in Prolog with a temp variable?
body: <p>I need to create a program to swap two values with a temporary variable in prolog as a part of my advanced programming class. This is my first time using the language, and from what I've seen, a temporary variable isn't even necessary. I have no idea how to go about this. Please help.</p>