miha-x64
01/17/2017, 9:31 AMlet
is a higher-order function, i. e. a function that takes another function (that can be a lambda-expression) as an argument/parameter. {}
is a lambda.
You can write either me?.let { newMe -> hi(newMe.name) }
or me?.let { hi(it.name) }
because let
accepts a single-argument lambda.