How to create a functor from a list in prolog?
How to append number to list in prolog?
How to sort output in prolog?
How to show only one result in prolog?
How to return a struct in prolog?