irx.builtins.collections.list
irx.builtins.collections.list
Source: packages/irx/src/irx/builtins/collections/list.py
title: Minimal dynamic-list metadata and type helpers.
summary: >-
Centralize the small IRX-side list layout contract plus the AST-type helpers
shared by semantic analysis and lowering.Functions
list_element_type(type_: astx.DataType | None) -> astx.DataType | None
title: Return one concrete list element type when available.
parameters:
type_:
type: astx.DataType | None
returns:
type: astx.DataType | Nonelist_has_concrete_element_type(type_: astx.DataType | None) -> bool
title: Return whether one list type has a single concrete element type.
parameters:
type_:
type: astx.DataType | None
returns:
type: bool