public struct Sampling<Base: Collection, Selection: Collection>
where Selection.Element == Base.Index
extension Sampling: SamplingProtocol
extension Sampling: Collection
extension Sampling: BidirectionalCollection
where Selection: BidirectionalCollection
extension Sampling: RandomAccessCollection
where Selection: RandomAccessCollection
اختيار كسول للعناصر، بترتيب معين، من مجموعة أساسية ما.
ينشئ مثيلًا من
base
selection
.تصريح
public init(base: Base, selection: Selection)
تصريح
public typealias Element = Base.Element
نوع تمثل مثيلاته المواقف في
self
.تصريح
public typealias Index = Selection.Index
موقف العنصر الأول.
تصريح
public var startIndex: Index { get }
الموضع بعد العنصر الأخير.
تصريح
public var endIndex: Index { get }