From 70e8c7ea292b624964df08b6c782f147e1978f13 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Mon, 21 Nov 2011 11:38:06 +0100 Subject: [PATCH] [].to_fun.reduce( []) # => Ups. [] will not be duped, so every key will have the same value. Argument for #reduce removed and everytime it will be an Array. --- lib/functional.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/functional.rb b/lib/functional.rb index 7c6e23a..611891a 100644 --- a/lib/functional.rb +++ b/lib/functional.rb @@ -1,4 +1,3 @@ - class ::Regexp class NegRegexp def initialize r @@ -193,10 +192,9 @@ class Functional end class Reduce