Forum: Ruby-core [ruby-trunk - Feature #5970][Open] Add Enumerable#join with same semantics as Array#join

Posted by Nikolai Weibull (Guest)
on 2012-02-05 09:29
(Received via mailing list)
Issue #5970 has been reported by Nikolai Weibull.

----------------------------------------
Feature #5970: Add Enumerable#join with same semantics as Array#join
https://bugs.ruby-lang.org/issues/5970

Author: Nikolai Weibull
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: 2.0.0


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.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-03-29 17:47
(Received via mailing list)
Issue #5970 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to matz (Yukihiro Matsumoto)


----------------------------------------
Feature #5970: Add Enumerable#join with same semantics as Array#join
https://bugs.ruby-lang.org/issues/5970#change-25384

Author: now (Nikolai Weibull)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0


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.
Posted by shugo (Shugo Maeda) (Guest)
on 2012-03-30 10:02
(Received via mailing list)
Issue #5970 has been updated by shugo (Shugo Maeda).


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]).

----------------------------------------
Feature #5970: Add Enumerable#join with same semantics as Array#join
https://bugs.ruby-lang.org/issues/5970#change-25457

Author: now (Nikolai Weibull)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0


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.
Posted by shugo (Shugo Maeda) (Guest)
on 2012-10-28 04:26
(Received via mailing list)
Issue #5970 has been updated by shugo (Shugo Maeda).

Target version changed from 2.0.0 to next minor


----------------------------------------
Feature #5970: Add Enumerable#join with same semantics as Array#join
https://bugs.ruby-lang.org/issues/5970#change-31847

Author: now (Nikolai Weibull)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: next minor


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.
Posted by zzak (Zachary Scott) (Guest)
on 2012-11-19 00:27
(Received via mailing list)
Issue #5970 has been updated by zzak (Zachary Scott).

File enumerable_join.patch added

Adding Greg Sterndale's patch from github:
https://github.com/ruby/ruby/pull/97
----------------------------------------
Feature #5970: Add Enumerable#join with same semantics as Array#join
https://bugs.ruby-lang.org/issues/5970#change-33069

Author: now (Nikolai Weibull)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: next minor


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.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.