I wish we had a more interesting example, something that solves a problem rather than just indexes into an array. By showing a sample that is useful you immediately help the user understand why they would need this function.