Project

General

Profile

Feature #7226 ยป add_join_to_set.patch

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

View differences:

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

  
3
	* com 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
  # Shortcut for to_a.join
156
  def join(sep = nil)
157
    to_a.join(sep)
158
  end
159

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