1
Logic Programming School of Informatics, University of Edinburgh
append/3 A Drosophila of L.P. As functions: append([], L) = L - - PowerPoint PPT Presentation
append/3 A Drosophila of L.P. As functions: append([], L) = L append([ H | T ], L) = [H | append(T, L) ] As a logic program append([], L, L) append([ H | T ], L, [ H | R ]) append(T, L, R) Logic Programming School of Informatics,
1
Logic Programming School of Informatics, University of Edinburgh
2
Logic Programming School of Informatics, University of Edinburgh
3
Logic Programming School of Informatics, University of Edinburgh
4
Logic Programming School of Informatics, University of Edinburgh
5
Logic Programming School of Informatics, University of Edinburgh
6
Logic Programming School of Informatics, University of Edinburgh
7
Logic Programming School of Informatics, University of Edinburgh
8
Logic Programming School of Informatics, University of Edinburgh
9
Logic Programming School of Informatics, University of Edinburgh