endindex
Using count vs isEmpty to check whether a collection contains any elements
What’s the difference between those two ways, and when should which be used?
What’s the difference between those two ways, and when should which be used?