Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a ChoiceOf from an array #701

Open
bbrk24 opened this issue Dec 1, 2023 · 1 comment
Open

Creating a ChoiceOf from an array #701

bbrk24 opened this issue Dec 1, 2023 · 1 comment

Comments

@bbrk24
Copy link

bbrk24 commented Dec 1, 2023

Relevant forums thread: https://forums.swift.org/t/creating-a-regex-choiceof-from-an-array/68755

I don't mind whether this is ChoiceOf.init<T: Collection<Substring>>(_ arr: T) or AlternationBuilder.buildArray<R: RegexComponent<Substring>>(_ components: [R]), but it should be possible to create a ChoiceOf from a collection.

@tomabuct
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants