1package bptree23// ExampleNew shows NewBPTree32() and adding a value4func ExampleNew() {5 var tree *BPTree6 tree = NewBPTree32()7 tree.Set("key0", "value0")89 var updated bool10 updated = tree.Set("key1", "value1")11 println(updated, tree.Size())1213 // Output:14 // false 215}1617// ExampleUpdate shows NewBPTree32() and updating a value18func ExampleUpdate() {19 var tree *BPTree20 tree = NewBPTree32()21 tree.Set("key0", "value0")2223 var updated bool24 updated = tree.Set("key0", "new_value0")25 println(updated, tree.Size())2627 // Output:28 // true 129}3031// ExampleZeroValue shows updating the zero value of a BPTree without NewBPTree32()32func ExampleZeroValue() {33 var tree BPTree34 tree.Set("key0", "value0")35 tree.Set("key1", "value1")3637 var updated bool38 updated = tree.Set("key2", "value2")39 println(updated, tree.Size())4041 // Output:42 // false 343}44Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.