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.
たとえば、次のようなクエリを作成するとbetween(1,4,X)?、X=2, X=3. これは可能ですか?
between(1,4,X)?
X=2
X=3
between(A,B,X):-X is A+1,X<B. between(A,B,X):-A2 is A+1,A2<B-1,between(A2,B,X).