Hacker News new | ask | show | jobs
by silok 1051 days ago
The subscript concept itself is nothing new, it is basically just a generalized element accessor, typically for collection types, arrays, dictionaries, etc.

https://docs.swift.org/swift-book/documentation/the-swift-pr...