mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
20 lines
362 B
Markdown
20 lines
362 B
Markdown
---
|
|
icon: package
|
|
label: collections
|
|
---
|
|
|
|
### `collections.Counter(iterable)`
|
|
|
|
Return a `dict` containing the counts of each element in `iterable`.
|
|
|
|
### `collections.deque`
|
|
|
|
A double-ended queue.
|
|
|
|
### `collections.defaultdict`
|
|
|
|
A dictionary that returns a default value when a key is not found.
|
|
|
|
#### Source code
|
|
|
|
:::code source="../../python/collections.py" ::: |