Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Returns a list Xs which contains N copies of the item X
- inflate(X, 1, [X]):-!.
- inflate(X, N, [X|Xs]) :-
- N1 is N - 1.
- inflate(X, N1, Xs).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement