Skip to content

Instance Subscript

subscript(_:)

Allow subscripting by String key. This is a type-erased alternative to the get(_:default:) and set(:to:) methods.
subscript(key: String) -> Any? { get set }

Overview

extend["foo"]