Rohan
data class commentNode ( var children: MutableList<CommentNode>? = mutableListOf(), var collapsed: Boolean = false ) {}
var tree: MutableList<CommentNode> = mutableListOf()
collapsed
CommentNode
alaershov
State
@Stable
copy()
ImmutableList<CommentNode>
mutableStateListOf<CommentNode>()
data class CommentNode ( val children: ImmutableList<CommentNode> = persistentListOf(), val collapsed: Boolean = false )
A modern programming language that makes developers happier.