11.3 Engine predicate reference
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Coroutining using Prolog engines
        • Engine predicate reference
          • engine_create/3
          • engine_create/4
          • engine_destroy/1
          • engine_next/2
          • engine_next_reified/2
          • engine_post/2
          • engine_post/3
          • engine_yield/1
          • engine_fetch/1
          • engine_self/1
          • is_engine/1
          • current_engine/1
    • Packages
Availability:built-in
[semidet]engine_next(+Engine, -Term)
Ask the engine Engine to produce a next answer. On this first call on a specific engine, the Goal of the engine is started. If a previous call returned an answer through completion, this causes the engine to backtrack and finally, if the engine produces a previous result using engine_yield/1, execution proceeds after the engine_yield/1 call.