Translations:Como executar o Prolog/18/en
Ir para navegação
Ir para pesquisar
?- takeout(X,[1,2,3,4],Y). /* 5. Take X out of list [1,2,3,4] */ X=1 Y=[2,3,4] ; Prolog waits ... User types ';' and Enter X=2 Y=[1,3,4] ; again ... X=3 Y=[1,2,4] ; again ... X=4 Y=[1,2,3] ; again ... no Means: No more answers.