Join Slack
Communities
Powered by
in your first example I believe you could even do ...
# getting-started
j
john.shelley
08/13/2016, 12:35 AM
in your first example I believe you could even do
val divBy: (x: Int) -> Boolean = { it % 42 == 0 }
since your lambda already knows what to expect.
it
is a keyword for the input to the lambda if only one param is supplied.
Open in Slack
Previous
Next