When I make a function that takes a lambda, I writ...
# getting-started
r
When I make a function that takes a lambda, I write it like this:
Copy code
fun findProject(id: String, callback: (Project?) -> Unit)
That works great for Kotlin. When interopping with Java, that function has to return a value, so I have to add a
return null
to the end of it, which is a bit awkward. Is there a way around that?