Skip to main content

remove

Function remove 

Source
pub fn remove<N: AvlNodes>(
    nodes: &mut N,
    root: Option<N::Node>,
    position: &N::Position,
) -> Result<Option<N::Node>, N::Error>
Expand description

Takes out the node at a position, answering the new root: music21’s removeNode. A node with two children takes on what the leftmost node of its right subtree holds, and that node goes instead.