From dec0490fc3faa0d2379f60f79e4216dc36a4265f Mon Sep 17 00:00:00 2001 From: nomnel Date: Tue, 26 Feb 2013 00:41:17 +0900 Subject: [PATCH] map+block -> map+proc --- 020.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/020.rb b/020.rb index 76f5320..166fe31 100644 --- a/020.rb +++ b/020.rb @@ -3,5 +3,5 @@ def factorial(n) n.downto(1).inject(:*) end - factorial(100).to_s.split("").map{|s| s.to_i}.inject(:+) + factorial(100).to_s.split("").map(&:to_i).inject(:+) end \ No newline at end of file