Add accessor with bounds check to Array

One other possibility would be to allow the following only for this exact meaning (an optional version of the main subscript):

guard let element = myArray[?: index] else {...}
2 Likes