explain the operation
(b *BranchNode, h NodeData)
| 22 | |
| 23 | // explain the operation |
| 24 | func AcceptLeftSibling(b *BranchNode, h NodeData) *BranchNode { |
| 25 | return &BranchNode{ |
| 26 | Hash: nil, |
| 27 | Left: &BranchNode{h, nil, nil, false}, |
| 28 | Right: b, |
| 29 | ElementOnTheLeft: false, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | func AcceptRightSibling(b *BranchNode, h NodeData) *BranchNode { |
| 34 | return &BranchNode{ |