Guest User

Untitled

a guest
Mar 6th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. % Part 3
  2.  
  3.  
  4. splitlist([H|T],Left,Pivot,Right):-
  5. (H == Pivot ->
  6. Right = T;
  7. splitlist(T,H,Pivot,Right)
  8. ).
  9.  
  10.  
  11. % splitlist(L, Pivot):-
  12. % splitlist(L, [], Pivot, []).
  13. %
  14. % splitlist([H|T], B, Pivot, C):-
  15. % splitlist(T,B,Pivot,T).
  16. %
  17. splitlist([], Left, Pivot, Right):-
  18. write("HERE"),
  19. write(Left).
  20. %
Advertisement
Add Comment
Please, Sign In to add comment