I remember there was some sort of method to assign a numerical value to values in an array, unfortunaetly I forgot how to do so, can anyone help?

If I remember correctly the example in my old book...