<@U0NPL9MPU> //KOTLIN ``` class Customer(var name...
# functional
a
@Dalinar //KOTLIN
Copy code
class Customer(var name: String = “Default”) {
    fun doSomething(fn: (Customer) -> Unit) {

    }
}
//JAVA
Copy code
Customer myCustomer = new Customer();

myCustomer.doSomething(customer -> {
	customer.setName("John");

	return Unit.INSTANCE;
});