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).