Tries each variant in variants, in order, and uses the first one that validates successfully.
variants
Tries each variant in
variants, in order, and uses the first one that validates successfully.