huh, I just noticed that you can pass an empty lam...
# announcements
k
huh, I just noticed that you can pass an empty lambda
{}
to a function expecting
() -> Any
because the lambda returns
Unit
which is a subtype of
Any
. That's ... interesting
k
That's also what allows methods that return the result of calling a lambda parameter in some context to return nothing.