Project

General

Profile

Feature #7226 ยป add_join_to_set.patch

nathan.f77 (Nathan Broadbent), 10/28/2012 05:45 AM

View differences:

ChangeLog (working copy)
1
Sat Oct 27 17:32:23 2012  Nathan Broadbent <nathan.f77@gmail.com>
2

  
3
	* lib/set.rb: Added #join method as a shortcut for to_a.join
4

  
1 5
Sat Oct 27 11:01:10 2012  Koichi Sasada  <ko1@atdot.net>
2 6

  
3 7
	* numeric.c (rb_float_new_in_heap), include/ruby/ruby.h: 
lib/set.rb (working copy)
152 152
    @hash.keys
153 153
  end
154 154

  
155
  def join(sep = nil)
156
    to_a.join(sep)
157
  end
158

  
155 159
  def flatten_merge(set, seen = Set.new) # :nodoc:
156 160
    set.each { |e|
157 161
      if e.is_a?(Set)