Wongi.Engine.Token (Wongi.Engine v0.9.18)

View Source

An intermediate data structure representing a partial match.

Summary

Functions

Returns all bound variables of the token.

Returns the value of a bound variable.

Types

t()

@type t() :: %Wongi.Engine.Token{
  assignments: term(),
  node_ref: term(),
  parents: term(),
  ref: term(),
  wme: term()
}

Functions

assignments(token)

Returns all bound variables of the token.

fetch(token, var)

@spec fetch(t(), atom()) :: {:ok, any()} | :error

Returns the value of a bound variable.