1
2
3
4
require 'benchmark' 

def operation(n)
...

Ruby On Euler 14

by jes5199, April 06, 2008 00:19

slightly faster, caches mor...

0f8ba0cdebc6938f4cd0601aeef21621 Talk
1
2
3
4
class Hash
  def fetch_all(key)
    return [] if not self.has_key?(key)
...

Ruby On Recursive Hash#fetch

by jes5199, March 21, 2008 00:20

well, since we're already r...

0f8ba0cdebc6938f4cd0601aeef21621 Talk