poohbar
10/01/2018, 3:49 PMalso
,run
,let
,apply
etc should I use:
1. the extension must be lambda that takes one parameter (like let), can't be this
2. it automatically returns the input just like apply
doesLuke
10/01/2018, 3:52 PM.let
poohbar
10/01/2018, 3:52 PM.let
returns R and not Tpublic inline fun <T, R> T.poo(
block: (T) → R
): T
Alowaniak
10/01/2018, 4:04 PMarekolek
10/01/2018, 4:54 PMilya.gorbunov
10/02/2018, 12:13 AMblock
to return R
type if you doesn't use it?