Advertisement
mvujas

Rad sa listama

Nov 22nd, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.15 KB | None | 0 0
  1. liste([], _).
  2. liste([G | _], G).
  3. liste([_ | R], C):- liste(R, C).
  4.  
  5. /* Broj elemata u listi */
  6. zad2([], 0).
  7. zad2([_ | R], N):- zad2(R, N1), N is N1 + 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement