tuxmartin

Zobrazeni prvku seznamu

Dec 18th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.17 KB | None | 0 0
  1. slovnik('mouse', 'mys').
  2. slovnik('cat', 'kocka').
  3. slovnik('dog', 'pes').
  4.  
  5. hledejKocku:-slovnik('cat', A), write(A),nl.
  6.  
  7. % | ?- hledejKocku.
  8. % kocka
  9. % yes
  10. %
  11. % | ?-
Advertisement
Add Comment
Please, Sign In to add comment