lib/optional/option/enumerable.rb in optional-0.0.6 vs lib/optional/option/enumerable.rb in optional-0.0.7
- old
+ new
@@ -13,10 +13,10 @@
def juxt(*methods)
map { |v| methods.map { |m| v.send(m) } }
end
def map_through(*methods)
- map &methods.reduce(->(x){x}){ |acc, m| ->(x) { acc.call(x).send(m) } }
+ map &methods.reduce(lambda { |x| x}) { |acc, m| lambda { |x| acc.call(x).send(m) } }
end
def map
from_array super
end