hash.c:524
VALUE
rb_hash_select(argc, argv, hash)
    int argc;
    VALUE *argv;
    VALUE hash;
{
    VALUE result;

    if (!rb_block_given_p()) {
#if RUBY_VERSION_CODE < 181
	rb_warn("Hash#select(key..) is deprecated; use Hash#values_at");
#endif
	return rb_hash_values_at(argc, argv, hash);
    }
    if (argc > 0) {
	rb_raise(rb_eArgError, "wrong number arguments(%d for 0)", argc);
    }
    result = rb_ary_new();
    rb_hash_foreach(hash, select_i, result);
    return result;
}
