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)
Sat Oct 27 17:32:23 2012 Nathan Broadbent <nathan.f77@gmail.com>
* com lib/set.rb: Added #join method as a shortcut for to_a.join
Sat Oct 27 11:01:10 2012 Koichi Sasada <ko1@atdot.net>
* numeric.c (rb_float_new_in_heap), include/ruby/ruby.h:
lib/set.rb (working copy)
@hash.keys
end
# Shortcut for to_a.join
def join(sep = nil)
to_a.join(sep)
end
def flatten_merge(set, seen = Set.new) # :nodoc:
set.each { |e|
if e.is_a?(Set)
(1-1/2)