Generic Instance Method
総称体インスタンスメソッド
replace
replaceSubrange(_:with:)
No overview available.
Availability
- iOS 8.0+
- iPadOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 9.3+
Technology
- Swift Standard Library Swift標準ライブラリ
Declaration 宣言
mutating func replaceSubrange<C>(_ subRange: Range
<Slice
<Base>.Index
>, with newElements: C) where C : Collection
, Base.Element
== C.Element
Available when
Base
conforms to BidirectionalCollection
and RangeReplaceableCollection
.
Base
がBidirectionalCollection
とRangeReplaceableCollection
に準拠する時に利用可能です。