example/magic_sequence.rb in gecoder-0.5.0 vs example/magic_sequence.rb in gecoder-0.6.0
- old
+ new
@@ -27,10 +27,10 @@
branch_on @sequence, :variable => :smallest_degree, :value => :split_max
end
def to_s
- @sequence.map{ |element| element.val }.join(', ')
+ @sequence.values.join(', ')
end
end
class Array
# Sums all the elements in the array using #+ .