any

fun <T> any(vararg rules: Rule<T>): Rule<T>
fun <T> any(rules: List<Rule<T>>): Rule<T>

Returns a new Rule that is the logical equivalent of the following operation:

rules[0] || rules[1] || ...

Return

A new Rule representing the logical "or" of the given rules.

Parameters

rules

The other Rules to evaluate.