You need an class/interface ``` interface B { f...
# dsl
j
You need an class/interface
Copy code
interface B {
  fun addThisObjectToList()
  fun andThisOne()
  fun andThisOne()
}
Than you have it like
Copy code
fun iceCream(block: B.()-> Unit) {
    val x = B() /// you need to implement the interface here
    x.block()
    ///return what you need
}