Prologppt
Prologppt
LIST
Basic data structure
Eg: [1,2,3] [x,y,z,ffff]
Object in a list can be anything, including another list.
Use vertical bar (|) to separate head and tail of a list. [H|
T]
Head is always the first element.
Terms :
Constant – Names an individual
Variable – Stands for an individual unable to be named when the
program is written
Compound term – Names of an individual that have parts