Document `index` and `rindex` (#389)