KT
val tvs = tv.map { (TextView) findViewById(it) }
map { findViewById(it) as TextView }
Size: a a a
KT
val tvs = tv.map { (TextView) findViewById(it) }
map { findViewById(it) as TextView }
AA
val tvs = tv.map { findViewById(it) as TextView }
с#
map { findViewById(it) as TextView }
map { findViewById<TextView>(it) }
AP
AA
map { findViewById<TextView>(it) }
findViewById
, потому так и написал.KT
map { findViewById<TextView>(it) }
findViewById
так умеетAA
findViewById
так умеетfindViewById
- дженерик функция, то умеет.VP
findViewById
- дженерик функция, то умеет.с#
AM
С
AL
AB
KS
IP
IP
x.let {
when {
it<10 -> ...
}
}
KS
IP
IP
x switch {
<10 => ...,
}
KS