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

[SR-1428] Add default argument to Sequence.joined(separator:) method #44037

Closed
benrimmington opened this issue May 6, 2016 · 2 comments
Closed
Labels
improvement standard library Area: Standard library umbrella

Comments

@benrimmington
Copy link
Collaborator

Previous ID SR-1428
Radar None
Original Reporter @benrimmington
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement
Assignee None
Priority Medium

md5: a5f63c1a862ff9e824a317866e8a345b

Issue Description:

A joined sequence of sequences could use an EmptyCollection as the default separator.

A joined sequence of strings could use an empty string as the default separator.

  1> ["con", "caten", "ated"].joined()
$R0: String = "concatenated"
  2> ["hyphen", "ated"].joined(separator: "-")
$R1: String = "hyphen-ated"
@benrimmington
Copy link
Collaborator Author

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant