Documentation Prolog Predicate Reference builtin once/1

once/1

Evaluate a term just once.

Description

once( @callable_term )

once(Term) is true. once makes sure that Term fails or succeeds just once.

Implementation