Skip to main content
Version: Next

call_nth/2

Description

call_nth/2 is a predicate that succeeds for the Nth solution of a goal.

Signature

call_nth(+Goal, ?N)

Where:

  • Goal is the goal to execute.
  • N is unified with the solution number (starting from 1).