PaweU

prolog5

Nov 26th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. 5.1.1
  2. neg(Coś) :- call(Coś), !, fail; true.
  3.  
  4. 5.1.2
  5. ifelse(Warunek, True, False) :-
  6. call(Warunek), call(True), ! ; call(False).
  7.  
  8. 5.2.1
  9. func_call(Fun, Wyn) :-
  10. Fun =.. Fun2List,
  11. append(Fun2List, Wyn, Predykat),
  12. Zapytanie =.. Predykat,
  13. call(Zapytanie).
Add Comment
Please, Sign In to add comment