Instance Propertyswift-algorithms 1.2.1Algorithms
count
Product.swift:113var count: Int { get }
var count: Int { get }
where Base1:Collection, Base2:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct Product2Sequence<Base1, Base2> where Base1 : Sequence, Base2 : Collection
A sequence that represents the product of two sequences’ elements.
@frozen struct Int
A signed integer value type.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var endIndex: Index { get }
var startIndex: Index { get }
subscript(position: Index) -> (Base1.Element, Base2.Element) { get }
func distance(from start: Index, to end: Index) -> Int
func index(_ i: Index, offsetBy distance: Int) -> Index
func index(_ i: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index?
func index(after i: Index) -> Index
struct Index
The index type for a Product2Sequence
collection.