Read-only subscript in Swift

Syntax for read-only subscript is :

Example :

Leave a Reply