Convenience functions for validating data.
Return invalid if the given String is empty, or if it contains only whitespace characters.
Return invalid if the given String cannot be parsed as an Int.
Return invalid if the given Dict is empty.
Return invalid if the given Set is empty.
Return invalid if the given predicate returns True for the given subject.
Run each the given validators, in order, and return their concatenated error lists.
Return True if none of the given validators returns any errors for the given subject, and False if any of them returns one or more errors.
Run each the given validators, in order, stopping after the first error and returning it. If no errors are encountered, return Nothing.
A Validator is a function which takes a subject and returns a list of errors describing anything invalid about that subject.
An empty error list means the subject was valid.