Feature #7226

Added #join method as a shortcut for to_a.join

Added by Nathan Broadbent over 1 year ago. Updated over 1 year ago.

[ruby-core:48498]
Status:Open
Priority:Normal
Assignee:Yukihiro Matsumoto
Category:lib
Target version:next minor

Description

I was surprised that Set.new.join gives me a NoMethodError.
This patch that adds a #join method to Set, which is a shortcut for to_a.join.

add_join_to_set.patch Magnifier (788 Bytes) Nathan Broadbent, 10/28/2012 05:38 AM

add_join_to_set.patch Magnifier (756 Bytes) Nathan Broadbent, 10/28/2012 05:45 AM


Related issues

Duplicates ruby-trunk - Feature #5970: Add Enumerable#join with same semantics as Array#join Assigned 02/05/2012

History

#1 Updated by Nathan Broadbent over 1 year ago

Sorry, previous patch contained a typo. Here's an updated patch.

#2 Updated by Ayumu AIZAWA over 1 year ago

  • Assignee set to Yukihiro Matsumoto
  • Target version set to next minor

#3 Updated by Rodrigo Rosenfeld Rosas over 1 year ago

+1. I was about to create the same feature request some weeks ago when I tried to join a set but was too lazy to do so :)

Also available in: Atom PDF