https://kotlinlang.org logo
Title
p

poohbar

10/01/2018, 3:49 PM
which of
also
,
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
does
l

Luke

10/01/2018, 3:52 PM
There is
.let
p

poohbar

10/01/2018, 3:52 PM
but
.let
returns R and not T
i guess i need
public inline fun <T, R> T.poo(
    block: (T) → R
): T
i

ilya.gorbunov

10/02/2018, 12:13 AM
@poohbar Why do you need
block
to return
R
type if you doesn't use it?
Ok, I see you've sorted it out 🙂