Validators for Lists.
minLength : x -> Basics.Int -> Validator x (List a) (List a)
Checks if a list is longer than or equal to a given number
maxLength : x -> Basics.Int -> Validator x (List a) (List a)
Checks if a list is shorter than or equal to a given number
every : Validator x a a -> Validator x (List a) (List a)
Checks if every item in a list passes the validation.
List.every (String.letterOnly "All items must be letters only") [ "abc", "def" ] == Ok [ "abc", "def" ]
List.every (String.letterOnly "All items must be letters only") [ "abc", "ab2c" ] == Err [ "All items must be letters only" ]