Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは非常に単純な質問です ;)
事実(a)。
事実(b)。
テスト (X):-事実 (X)。
解は X=a; X=b。わかった
作成しようとしています: test(X,L):-fact(X), ??? L=[a,b] を返す
誰かが私を助けることができますか?ありがとう。
ソリューションfindall/3を集約するために使用します。
findall/3
test(L):- findall(X, fact(X), L).