each

inline fun <T> Validatable<Iterable<T>?>.each(block: Validatable<T>.() -> Unit)

Iterates over each element of this object and wraps them with a Validatable before passing them to the block.

Validator<List<String>> {
// Validate that each string is not empty
each { isNotEmpty() }
}