Generic Subscript
subscript(_:)
No overview available.
Availability
- iOS 8.0+
- iPadOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 10.0+
Technology
- Swift Standard Library Swift標準ライブラリ
Declaration 宣言
subscript<R>(r: R) -> Slice
<Base> where R : RangeExpression
, Base.Index
== R.Bound
{ get set }
Available when
Base
conforms to MutableCollection
.
Base
がMutableCollection
に準拠する時に利用可能です。