call_nth/2¶
call_nth(G,N)*
Call G unifying N with the number of answers so far.
An example is: ```
?- call_nth(between(1,10,N),N). N=1 ; N=2 ; N=3
when _N is bound: ```
?- call_nth(between(1,6,X),3).
X=3
call_nth(G,N)*
Call G unifying N with the number of answers so far.
An example is: ```
?- call_nth(between(1,10,N),N). N=1 ; N=2 ; N=3
when _N is bound: ```
?- call_nth(between(1,6,X),3).
X=3