Contents

AlternationBuilder

A custom parameter attribute that constructs regular expression alternations from closures.

Declaration

@resultBuilder struct AlternationBuilder

Overview

When you use a ChoiceOf initializer, the initializer’s closure parameter has an AlternationBuilder attribute, allowing you to provide multiple regular expression statements as alternatives.

Topics

Type Methods

See Also

Builders