'How to have a fact have multiple values in prolog?
I am wondering how I can make a fact have multiple values for example:
answer(1-100, 'yes').
answer(100-700, 'no).
For 1-100 it would be yes and 100-700 it would be no. Writing thousands of facts would be too time consuming.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
