Skip to content

Update contains and split with different parameter names #411

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

Closed
wants to merge 1 commit into from

Conversation

natecook1000
Copy link
Member

This is an alternative resolution to overload resolution, contrasted with #402.

@@ -309,11 +309,11 @@ extension Collection where Element: Equatable {
/// elements.
@available(SwiftStdlib 5.7, *)
public func split<C: Collection>(
separator: C,
pattern: C,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For split, I think calling this parameter pattern would make its role unclear. Have you considered separatorPattern?

@natecook1000
Copy link
Member Author

Closing in favor of the solution in #402.

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

Successfully merging this pull request may close these issues.

2 participants