Project

General

Profile

Actions

Feature #5970

open

Add Enumerable#join with same semantics as Array#join

Added by now (Nikolai Weibull) over 13 years ago. Updated over 7 years ago.

Status:
Assigned
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 (zzak _), 11/19/2012 08:26 AM

Related issues 1 (0 open1 closed)

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

Updated by mame (Yusuke Endoh) over 13 years ago

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

Updated by shugo (Shugo Maeda) over 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 shugo (Shugo Maeda) almost 13 years ago

  • Target version changed from 2.0.0 to 2.6
Actions #5

Updated by naruse (Yui NARUSE) over 7 years ago

  • Target version deleted (2.6)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy