Working with lists in Prolog
6 important questions on Working with lists in Prolog
What is a list?
What is the vertical bar operator used for?
What is the unification of the following atom: p([X, 3 | Z]) unifies p([b, Y, c, b])
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
[ ] and [ ], [X|Y] and [a] with X=a Y=[ ], [a,b,c] and [a|[b,c]] are these examples of matching lists or non matching lists?
[a] and [ ], [a,b,c] and [X,b,X], [ ] and [ [ ] ], [X, Y] and [U,V,W] are these examples of matching or non matching lists?
[john, joe, sue] unifies with [P | Z] for:
The question on the page originate from the summary of the following study material:
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding