// this is the class from the DSL class X { fun writeInt(i:Int) = println(i) } fun predefinedInt(i:Int) = fun X.() { writeInt(i) } val number7 = predefinedInt(7) fun workOnX3() : X.() -> Unit = { number7() }