I am trying to group a list based on some type and if they are in sequence
data class Item(val type: Int, val name: String) private fun splitItems(items: Lis