Merge pull request #114 from mrvon/master

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

@ -770,14 +770,15 @@ func main() {
_ = 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.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)
// BTree
// 1
// 3
// 4
// 5
// 6
// 6
// 7
tree.Clear() // empty
tree.Empty() // true

Loading…
Cancel
Save