1 2 3 4
pools = {1 => [1,2,3], 2=> [3,4,5], 3=> [5,6,7]} pools.inject([]) {|m,x| m << x[1].select {|y| pools[x[0] + 1].include?(y) unless pools[x[0] + 1].nil?}}.flatten ...
Ruby On Find the Intersection of Ar...
by rjspotter,
August 06, 2008 22:01
1 2 3 4
<style type="text/css"> a.go_back { background: url(/images/go_back.png) center left no-repeat; padding-left: /*width of go_back.png*/;} </style> ...
1 2 3 4
require 'rubygems' require 'functor' ...
Ruby Array#split_with(something)
by rjspotter,
August 06, 2008 19:07,
2 refactorings
This started out as "wouldn...

I'm basicly golfing at this...