array element reference and ranges of indices