X hits on this document

Powerpoint document

COMP313A Programming Languages - page 91 / 92

234 views

0 shares

0 downloads

0 comments

91 / 92

91

L = [movie(X1, wizardofoz),

        movie(X2, drwhoandtheDaleks),

        movie(X3, starwars),

        movie(X4, shortcircuit)],

Robotslist = [tinman, dalek, r2d2, johnnyfive],

         member(X1, Robotslist),

         X1 \= dalek,

         member(X2, Robotslist),

         X2 \= tinman,

          X2 \= johnnyfive,

         member(X3, Robotslist),

         X3 = r2d2,

         member(X4, Robotslist),

         X4 \= tinman,

          X2 \= X1, X2 \= X3, X2 \= X4, X3 \= X1, X3 \= X4, X4 \= X1,

                 print_movies(L).

solution(L):-

Document info
Document views234
Page views234
Page last viewedThu Dec 08 08:43:33 UTC 2016
Pages92
Paragraphs860
Words3091

Comments