mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: replace generic <> with [] - part 2 (#16536)
This commit is contained in:
@@ -15,7 +15,7 @@ fn (a KeyVal) < (b KeyVal) bool {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
mut bst := datatypes.BSTree<KeyVal>{}
|
||||
mut bst := datatypes.BSTree[KeyVal]{}
|
||||
bst.insert(KeyVal{ key: 1, val: 12 })
|
||||
println(bst.in_order_traversal())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user