Generate all the possible pairs formed byTry yourself before you check the Prolog solution and the Functional solution.
- i) a list using the elements a, b and length lesser than 3,
- ii) its concatenation with the list [c, d].
But Functional Programming is more Expressive than Logic Programming
Go to index