lib/soroban/functions/average.rb in soroban-0.7.3 vs lib/soroban/functions/average.rb in soroban-0.8.0

- old
+ new

@@ -1,5 +1,5 @@ # Average the arguments, which may be numbers, labels or ranges. -Soroban::define :AVERAGE => lambda { |*args| - values = Soroban::getValues(binding, *args) +Soroban::Functions.define :AVERAGE => lambda { |*args| + values = Soroban::Helpers.getValues(binding, *args) values.reduce(:+) / values.length.to_f }