grosser.it
Ruby Array.diff(other) difference between 2 Arrays
Diff is defined on Set, but not on Array, so we patch it in… (thanks to reto) Usage [1,2] ^ [2,3,4] == [1,3,4] Code class Array def ^(other) result = dup other.each{|e| result.include?(e) ? r…