Guest User

Untitled

a guest
Jun 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. inser(t(K,_,_),K):-!.
  2. inser(t(K,L,_),X):-X=<K,!,inser(L,X).
  3. inser(t(_,_,R),X):-inser(R,X).
  4.  
  5. in(R,V,R):-var(V),!.
  6. in(T1,t(K,L,R),Rez):-inser(T1,K),in(T1,L,Rez2),in(Rez2,R,Rez).
Add Comment
Please, Sign In to add comment