clone

open override fun clone(context: PrologExecutionContext = this.context): StateHalt

Returns a copy of this state, replacing context with the given one (defaulting to the current context).