Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[a,b,c], [d,e,f],[h,g]]
- move([[a,b,c], [d,e,f],[h,g]], f, 2, 3, R).
- R = [[a,b,c], [d,e],[h,g,f]]
- move([[a,b,c], [d,e,f],[h,g]], f, 2, 1, R).
- R = [[a,b,c,f], [d,e],[h,g]]
- last([A], C):- A == C.
- last([_|T], C):- last_one(T, C).
Add Comment
Please, Sign In to add comment