https://kotlinlang.org logo
#getting-started
Title
# getting-started
r

Ruckus

12/08/2016, 7:59 PM
@poohbar Assuming you have an class
Fred
that has a function
plugin(String)
, the above apply method could be defined as
fun apply(op: Fred.() -> Unit)
and would just work