Implement constant-time nth method for Items #17348