itacart.index.iter_cells

itacart.index.iter_cells(index)[source]

Stream atomic indices in decompose() order.

Preferable to decompose() for dense regions, where the flat list can be very large.

Parameters:

index (str) – Compositional index string.

Yields:

str – Fully qualified atomic index strings.

Return type:

Iterator[str]

The fold, and how far it reaches. A western zero-column spelling names no cell – column zero is the prime-meridian column and the meridian belongs to the eastern quadrants – and this layer takes it anyway, because analysing a spelling is not the same act as answering for a cell. Two functions rewrite it onto its eastern twin (normalize and compose) and two hand it straight back (decompose and iter_cells). Anything that answers about the cell refuses it instead, so the reach of this leniency is exactly the layer that reads index strings.