// avoid index out-of-rangeextensionCollection { /// return the element at the index if it is within range,/// otherwise nil.////// Example:/// `collection[safe: 20]`subscript(safeindex: Index) ->Element? { return indices.contains(index)? self[index]:nil } }