Tests and documentation for array .index(ind) function.