Merge pull request #114 from mrvon/master

README: fix BTree commit
pull/119/head
Emir Pasic 6 years ago committed by GitHub
commit e689965507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -770,7 +770,7 @@ func main() {
_ = tree.Values() // []interface {}{"a", "b", "c", "d", "e", "f", "g"} (in order) _ = tree.Values() // []interface {}{"a", "b", "c", "d", "e", "f", "g"} (in order)
_ = tree.Keys() // []interface {}{1, 2, 3, 4, 5, 6, 7} (in order) _ = tree.Keys() // []interface {}{1, 2, 3, 4, 5, 6, 7} (in order)
tree.Remove(2) // 1->a, 3->c, 4->d, 5->e, 6->f (in order) tree.Remove(2) // 1->a, 3->c, 4->d, 5->e, 6->f, 7->g (in order)
fmt.Println(tree) fmt.Println(tree)
// BTree // BTree
// 1 // 1
@ -778,6 +778,7 @@ func main() {
// 4 // 4
// 5 // 5
// 6 // 6
// 7
tree.Clear() // empty tree.Clear() // empty
tree.Empty() // true tree.Empty() // true

Loading…
Cancel
Save