Ben Madore
10/11/2019, 6:46 PMinternal fun getFoo(block: (Foo.() -> Unit)): Foo {
return Foo().apply{
//someinit
}.apply{
block()
}
…
}
right now if i don’t have actual functionality to include in the block i have to call it like: getFoo{}
is there a way to allow calling it like getFoo()
in this case?