MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / arrayReplaceAt

Function arrayReplaceAt

markdown_it/common/utils.py:46–53  ·  view source on GitHub ↗

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]
)

Source from the content-addressed store, hash-verified

44
45
46def 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
56def isValidEntityCode(c: int) -> bool:

Callers 1

linkifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…