Created
September 17, 2018 15:29
-
-
Save TomasDrozdik/62f362d99a79c5198befcca208a95235 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
permurations(Xs, Pss) :- | |
findall(Ys, permutace(Xs, Ys), Pss). | |
permList(Xs, AkYss, Yss) :- | |
permutace(Xs, Ys), | |
\+member(Ys, AkYss), | |
permList(Xs, [Ys|AkYss], Yss), !. | |
permList(_, AkYss, Yss) :- | |
reverse(AkYss, Yss), !. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment