Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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"]