Ussd.Decisions.Between (Ussd v0.2.0)

Copy Markdown View Source

Matches when low <= input <= high (numeric-aware, so Between.new(1, 10) matches "9" and "10" correctly instead of comparing them as strings).

Summary

Types

t()

@type t() :: %Ussd.Decisions.Between{
  high: String.t() | number(),
  low: String.t() | number()
}

Functions

new(low, high)

@spec new(String.t() | number(), String.t() | number()) :: t()