how do i indicate that a function type as a parame...
# announcements
b
how do i indicate that a function type as a parameter is optional.
Copy code
internal 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?