Based on the provided input, here is the explained and translated code example in Ada from the specified code snippet.
for .. of loop on arrays provides both the index and value for each entry. Above we didn’t need the index, so we ignored it with the plain loop. Sometimes we actually want the indexes though.
for .. of loop on maps iterates over key/value pairs.
for .. of loop can also iterate over just the keys of a map.
for .. of loop on strings iterates over Unicode code points. The first value is the starting byte index of the character and the second is the character itself.
To run the program, compile the code into an executable and then run it.
Now that we can run and build basic Ada programs, let’s learn more about the language.