Guest User

Untitled

a guest
Aug 12th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.16 KB | None | 0 0
  1. split(_, _, 0, []) :- !.
  2. split(Lista, Od, Ile, Wynik) :-
  3.     length(L,Od),
  4.     append(L,Reszta,Lista),
  5.     Ile2 is Ile - 1,
  6.     length(L2,Ile2),
  7.     append(L2,Reszta,Wynik).
Add Comment
Please, Sign In to add comment