View Source Xod.List (Xod v0.1.0)

Link to this section Summary

Link to this section Types

@type args() :: [
  keys: list(),
  min: non_neg_integer(),
  max: non_neg_integer(),
  length: non_neg_integer(),
  coerce: boolean()
]
@type t() :: %Xod.List{
  coerce: boolean(),
  element: Xod.Schema.t(),
  keys: %{required(atom() | non_neg_integer()) => Xod.Schema.t()},
  length: non_neg_integer(),
  max: non_neg_integer(),
  min: non_neg_integer()
}

Link to this section Functions

@spec keys(t(), list()) :: t()
@spec length(
  t(),
  non_neg_integer()
) :: t()
@spec max(
  t(),
  non_neg_integer()
) :: t()
@spec min(
  t(),
  non_neg_integer()
) :: t()
Link to this function

new(element, options \\ [])

View Source
@spec new(Xod.Schema.t(), args()) :: t()