Advertisement
Tavi33

Untitled

Apr 7th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. :- op(300, xfy, was).
  2. :- op(300, fy, the).
  3. :- op(300, xfy, of).
  4.  
  5. jim was the secretary of the department.
  6. kevin was not.
  7.  
  8. :- op(300, fy, deleting).
  9. :- op(200, xfy, from).
  10. :- op(200, xfy, gives).
  11.  
  12. %deleting(Item, [Item|_], Item).
  13. %deleting(Item, [Item|Tail], Result) :-
  14. % deleting(Item, Tail, Result).
  15.  
  16. %
  17. %deleting(Item, List, Result) :-
  18. % delete(Item, List, Result).
  19.  
  20. %from(Item, List, Result) :-
  21. % delete(Item, List, Result).
  22.  
  23. %gives(Result, Result).
  24.  
  25. deleting I from L gives Res :- delete(L, I, Res).
  26.  
  27. :- op(300, fy, concatenating).
  28. :- op(200, xfy, and).
  29.  
  30. concatenating X and Y gives Res :- append(X, Y, Res).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement