jonnyzzz
06/15/2018, 1:22 PMinterface B {
fun addThisObjectToList()
fun andThisOne()
fun andThisOne()
}
Than you have it like
fun iceCream(block: B.()-> Unit) {
val x = B() /// you need to implement the interface here
x.block()
///return what you need
}