%permutation(X,L)
%X - input list
%L - possible permutation
permutation([],[]).
permutation([X|L],P):-
permutation(L,L1),
insert(X,L1,P).
Email this
Hits: 1318
Comments (0)

Write comment
PHP and Facebook freelancer