idiomatic solution to this simple problem in your favorite language?gist.github.com1 pointsdegutis13 years ago