View
MutableSequenceView dataclass
MutableSequenceView(node: NodeType, field: FieldType)
Bases: SequenceView[FieldType, NodeType, ElemType]
popfirst
popfirst() -> ElemType | None
Pop the first element from the view.
Returns:
Type | Description |
---|---|
ElemType | None | The first element in the view. |
Source code in src/kirin/ir/nodes/view.py
134 135 136 137 138 139 140 141 142 |
|
poplast
poplast() -> ElemType | None
Pop the last element from the view.
Returns:
Type | Description |
---|---|
ElemType | None | The last element in the view. |
Source code in src/kirin/ir/nodes/view.py
124 125 126 127 128 129 130 131 132 |
|