Instance Methodswift 6.1.2Swift
index(_:offsetBy:)
func index(_ i: LazyMapSequence<Base, Element>.Index, offsetBy n: Int) -> LazyMapSequence<Base, Element>.Index func index(_ i: LazyMapSequence<Base, Element>.Index, offsetBy n: Int) -> LazyMapSequence<Base, Element>.Index ss15LazyMapSequenceVsSlRzrlE5index_8offsetBy5IndexQzAF_SitF What are these?2LOUZwhere Base:Collectionimport Swift@frozen struct LazyMapSequence<Base, Element> where Base : SequenceA Sequence whose elements consist of those in a Base Sequence passed through a transform function returning Element. These elements are computed lazily, each time they’re read, by calling the transform function on a base element.
@frozen struct IntA signed integer value type.
protocol Collection<Element> : SequenceA sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var count: Int { get }The number of elements in the collection.
var endIndex: Base.Index { get }var indices: LazyMapSequence<Base, Element>.Indices { get }var isEmpty: Bool { get }A Boolean value indicating whether the collection is empty.
var startIndex: Base.Index { get }subscript(bounds: Range<Base.Index>) -> LazyMapSequence<Base, Element>.SubSequence { get } subscript(position: Base.Index) -> Element { get } Accesses the element at position.
func distance(from start: LazyMapSequence<Base, Element>.Index, to end: LazyMapSequence<Base, Element>.Index) -> Int func formIndex(after i: inout LazyMapSequence<Base, Element>.Index) func index(_ i: LazyMapSequence<Base, Element>.Index, offsetBy n: Int, limitedBy limit: LazyMapSequence<Base, Element>.Index) -> LazyMapSequence<Base, Element>.Index? func index(after i: LazyMapSequence<Base, Element>.Index) -> LazyMapSequence<Base, Element>.Index func map<ElementOfResult>(_ transform: @escaping (Element) -> ElementOfResult) -> LazyMapCollection<Base, ElementOfResult> typealias Index = Base.Indextypealias Indices = Base.Indicestypealias SubSequence = LazyMapCollection<Base.SubSequence, Element>