Surely you can achieve that after source transformation. A brief investigation shows that indexing the above for the default first argument indexing which is used for predicates with not many clauses and called with an instantiated first argument is probably not too hard.
jan
28
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Recently started woring with prolog and decided to make a text documenting my annoyances | 18 | 792 | October 21, 2023 | |
| Coding problem | 23 | 2104 | September 12, 2020 | |
| Why does this predicate change a list with a tail, to a list with two elements, one ground, one var? | 15 | 2008 | July 17, 2019 | |
| Why does my predicate always return true instead of binding the variables? | 15 | 1252 | September 3, 2023 | |
| Semantics of partition with "partial evaluation" | 20 | 753 | October 30, 2023 |