-
Notifications
You must be signed in to change notification settings - Fork 124
ArrayView::join and FixedArray::join #2125
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
Conversation
Duplicate implementation of join logic in both View::join and FixedArray::joinCategory Size hint calculation could be more accurateCategory Inconsistent separator handling between empty and non-empty casesCategory |
Pull Request Test Coverage Report for Build 6960Details
💛 - Coveralls |
@Yu-zh asked whether we should be using I think maybe we can use |
When using @string.View for separator, what should I do with string.write_string(separator) since there doesn't seem to be a write_view function? |
I think you can simply call |
…ient to concatenate strings within an array into a single complete string.
improve code readability
improve code readability
Adding ArrayView::join and FixedArray::join functions makes it convenient to concatenate strings within an array into a single complete string.