count
The number of elements in the span.
Declaration
var count: Int { get }Discussion
To check whether the span is empty, use its isEmpty property instead of comparing count to zero.
The number of elements in the span.
var count: Int { get }To check whether the span is empty, use its isEmpty property instead of comparing count to zero.