sift/list
List validators — length constraints.
Values
pub fn max_length(
n: Int,
msg: String,
) -> fn(List(a)) -> Result(List(a), String)
List must have at most n items
pub fn min_length(
n: Int,
msg: String,
) -> fn(List(a)) -> Result(List(a), String)
List must have at least n items