genericIndex package:base-prelude

The genericIndex function is an overloaded version of !!, which accepts any Integral value as the index.