kawauchi #452(2007/07/10 08:57 GMT) [ Ruby ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11
require 'pseudohash' # http://www.notwork.org/~gotoken/ruby/p/pseudohash/ xs = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9] h = PseudoHash.new xs.each{|i| h[i, true] = nil } xs_out = h.map{|k, v| k} p xs_out
Rating0/0=0.00-0+
[ reply ]
kawauchi #452() [ Ruby ] Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]