Contents

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.