O'Reilly logo
  • Henry Huang thinks this is interesting:

${!array[*]} ${!array[@]}

From

Cover of The Linux Command Line

Note

output the actual existing subscripts of the array