then

infix fun then(block: ValidationRuleBuilder<V>.() -> Unit)

Chains a set of rules to the non-optional value.

Usage:

rules<String?> {
notNull { "must be not null" } then {
minLength(3) { "must be at least 3 characters" }
}
}

@param block The block to build the rule set.