mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-09-16 23:44:21 +02:00
Implemented iterator. Kotlin extensions.
This commit is contained in:
@@ -115,15 +115,14 @@ class TreeNodeTest {
|
||||
@Test
|
||||
fun kotlinExtTest() {
|
||||
val root = treeNode("World") {
|
||||
child("North America") {
|
||||
child("USA")
|
||||
treeNode("North America") {
|
||||
treeNode("USA")
|
||||
}
|
||||
child("Europe") {
|
||||
child("Poland")
|
||||
child("Germany")
|
||||
treeNode("Europe") {
|
||||
treeNode("Poland")
|
||||
treeNode("Germany")
|
||||
}
|
||||
}
|
||||
|
||||
println(root)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user