View on types which have a size
View on types which have a size
Check the length of a String
Check the length of a String
hasSize()
Check if the size of a value is in a specified range
Check if the size of a value is in a specified range
hasSize(List(1, 2, 3), min = 3) === Success(List(1, 2, 3))
a value
a minimal size (inclusive), default Int.MinValue
a maximum size (inclusive), default Int.MaxValue
a Sized view on the validation value
if size is outside of range then IsToBigError or IsToSmallError