Y
Hacker News
new
|
ask
|
show
|
jobs
by
afiedler
3279 days ago
Ruby's standard library does this. Here's the code:
https://github.com/ruby/ruby/blob/trunk/lib/set.rb