Logo

Programming-Idioms

History of Idiom 9 > diff from v45 to v46

Edit summary for version 46 by ruibritopt:
New Kotlin implementation by user [ruibritopt]

Version 45

2019-10-15, 09:26:19

Version 46

2019-10-18, 14:17:03

Idiom #9 Create a Binary Tree data structure

The structure must be recursive because left child and right child are binary trees too. A node has access to children nodes, but not to its parent.

Idiom #9 Create a Binary Tree data structure

The structure must be recursive because left child and right child are binary trees too. A node has access to children nodes, but not to its parent.

Code
val l = listOf(_a,_b,_c)
Doc URL
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/list-of.html