Qurak

TreeReplacePart

ใช้งานได้

Replaces the subtree at a given position (or list of positions) in a tree with a new value

TreeReplacePart[tree, pos -> new]
TreeReplacePart[tree, {pos1 -> new1, pos2 -> new2, …}]
TreeReplacePart[tree, {pos1, pos2, …} -> new]
TreeReplacePart[tree, {{pos1, 1, pos1, 2, …} -> new1, …}]
TreeReplacePart[pos -> new]

หัวข้อ

ที่เกี่ยวข้อง

ฟังก์ชันทั้งหมด 6300 รายการ · ใช้สิ่งนี้จากไคลเอนต์ MCP