Project

General

Profile

Feature #5970

Add Enumerable#join with same semantics as Array#join

Added by now (Nikolai Weibull) over 8 years ago. Updated almost 3 years ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:42357]

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

enumerable_join.patch (5.42 KB) enumerable_join.patch zzak (Zachary Scott), 11/19/2012 08:26 AM

Related issues

Has duplicate Ruby master - Feature #7226: Add Set#join method as a shortcut for to_a.joinRejectedknu (Akinori MUSHA)10/28/2012Actions

Also available in: Atom PDF