API reference
python:irx:irx.analysis.collections
module collections
irx.analysis.collections
Source: packages/irx/src/irx/analysis/collections.py:1
Collection capability helpers for semantic analysis.
Centralize collection-kind detection, item-type extraction, and method capability records for list, tuple, set, and dictionary operations.
Classes
- CollectionKind — Stable semantic collection-kind names.
Functions
-
collection_contains_types — Return accepted containment probe types for one collection.
-
collection_kind — Return the collection kind represented by one type.
-
collection_supports_sequence_search — Return whether a collection supports index/count queries.
-
collection_value_types — Return value-like element types for one collection.
-
is_collection_type — Return whether one type is a supported collection type.