Guest User

Untitled

a guest
Feb 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class Node(val id: String, val comments: MutableList<String> = mutableListOf(), parent: Node?, val children: MutableList<Node> = mutableListOf()) {
  2.  
  3. var parent: Node? by ParentDelegate(parent)
  4.  
  5. fun isRoot(): Boolean = parent == null
  6.  
  7. //...
  8. }
Add Comment
Please, Sign In to add comment