Remove element from array and put another array at those position. Useful for some operations with tokens
(
src: list[_ItemTV], pos: int, newElements: list[_ItemTV]
)
| 44 | |
| 45 | |
| 46 | def arrayReplaceAt( |
| 47 | src: list[_ItemTV], pos: int, newElements: list[_ItemTV] |
| 48 | ) -> list[_ItemTV]: |
| 49 | """ |
| 50 | Remove element from array and put another array at those position. |
| 51 | Useful for some operations with tokens |
| 52 | """ |
| 53 | return src[:pos] + newElements + src[pos + 1 :] |
| 54 | |
| 55 | |
| 56 | def isValidEntityCode(c: int) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…