val (list1, list2) = comments.partition { comment...
# codereview
s
val (list1, list2) = comments.partition { comment -> comment.indexOfFirst { it.id == comment.parentId } > -1}