TypeCheck v0.2.0 TypeCheck.Builtin.FixedTuple View Source
Link to this section Summary
Link to this section Types
Specs
problem_tuple() ::
{t(), :not_a_tuple, %{}, any()}
| {t(), :different_size, %{expected_size: integer()}, tuple()}
| {t(), :element_error,
%{
problem: TypeCheck.TypeError.Formatter.problem_tuple(),
index: integer()
}, tuple()}
This type is managed by TypeCheck,
which allows checking values against the type at runtime.
Full definition:
problem_tuple :: {t(), :not_a_tuple, %{}, any()} | {t(), :different_size, %{expected_size: integer()}, tuple()} | {t(), :element_error, %{problem: lazy(TypeCheck.TypeError.Formatter.problem_tuple()), index: integer()}, tuple()} Specs
t() :: %TypeCheck.Builtin.FixedTuple{element_types: list()}
This type is managed by TypeCheck,
which allows checking values against the type at runtime.
Full definition:
t :: %TypeCheck.Builtin.FixedTuple{element_types: list()}