ActionsLike0
Feature #5970
openAdd Enumerable#join with same semantics as Array#join
Description
Currently, to join the elements of an Enumerable, you need to call #to_a on the Enumerable and then #join the result. With Enumerable#join one wouldn’t need need to create an intermediate Array.
Files
Updated by shugo (Shugo Maeda) about 13 years ago
now (Nikolai Weibull) wrote:
Currently, to join the elements of an Enumerable, you need to call #to_a on the Enumerable and then #join the result. With Enumerable#join one wouldn’t need need to create an intermediate Array.
Once Enumerable#join had been added, and was removed later. See Bug #1893 ([ruby-core:24786]).
Updated by zzak (zzak _) over 12 years ago
- File enumerable_join.patch enumerable_join.patch added
Adding Greg Sterndale's patch from github:
https://github.com/ruby/ruby/pull/97
ActionsLike0