Sorry, that is a garbage of my first code.

```ruby
def index(value)
  warn("warning: Hash#index is deprecated; use Hash#key")
  key(value)
end
```