is v1.0.0 Is.Validators.With View Source

Test returned value against validators.

Examples

iex> Is.validate(10, with: [&is_number/1, equals: true])
[]

iex> Is.validate(10, with: [&(&1 * 2), in_range: [min: 30, max: 50]])
[{:error, [], "must be between 30 and 50 inclusive"}]

Link to this section Summary

Link to this section Functions