Theoria.Equation.FixedParams (theoria v0.7.0)

Copy Markdown View Source

Experimental/internal API for 0.2; subject to change before 0.3. Minimal descriptor for fixed parameters of compiled equation definitions.

Summary

Functions

Derives fixed parameters from a definition signature.

Returns whether an argument position is fixed.

Builds a fixed-parameter descriptor.

Types

t()

@type t() :: %Theoria.Equation.FixedParams{positions: [non_neg_integer()]}

Functions

analyze(map)

@spec analyze(map()) :: {:ok, t()} | {:error, term()}

Derives fixed parameters from a definition signature.

fixed?(fixed_params, position)

@spec fixed?(t(), non_neg_integer()) :: boolean()

Returns whether an argument position is fixed.

new(positions \\ [])

@spec new([non_neg_integer()]) :: t()

Builds a fixed-parameter descriptor.