.count
Christine_Yang271 total contributions
Published Oct 11, 2022
Contribute to Docs
The .count
property returns an integer that represents how many key-value pairs are in a dictionary.
Syntax
dictionaryInstance.count
Example
var fruitStand = ["Apples": 12,"Bananas": 20,"Oranges", 17]print(fruitStand.count)// Output: 3
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.