how could I have a map of objects that implement i...
# announcements
m
how could I have a map of objects that implement it such as
Copy code
val delegates : Map<Int, DelegateAdapter<Item, ????>>
...
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
    delegates[position].onBindViewHolder(holder, item)
}