Implemented iterator. Kotlin extensions.

This commit is contained in:
2020-01-11 00:41:36 +01:00
parent 0a04ecd532
commit 0ece34daf2
5 changed files with 44 additions and 12 deletions

View File

@@ -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)
}