example: https://github.com/topazproject/topaz/blob/master/lib-topaz/enumerable.rb#L123