There are two ways we recommend. One you’re famil...
# arrow
p
There are two ways we recommend. One you’re familiar with: extension functions. You can implicitly pass one parameter if everything is an extfun
Copy code
fun Connection.authenticate(username: String, password: String) ....
fun Connection.getUserByUsername(username: String): Option<User>  = authenticate(username, "123")