Hamza
06/29/2018, 4:31 PMprintln("hello".apply {
replace("h", "H")
})
}
leolima
06/29/2018, 4:32 PMAndreas Sinz
06/29/2018, 4:33 PMleolima
06/29/2018, 4:33 PMapply
returns the same objectHamza
06/29/2018, 4:36 PMleolima
06/29/2018, 4:37 PMrun
, it returns the result from the inner blockHamza
06/29/2018, 4:37 PMAndreas Sinz
06/29/2018, 4:38 PMval value = Base64.getEncoder().encodeToString(bytes)
.replace(...)
.replace(...)
Hamza
06/29/2018, 4:39 PMval value = Base64.getEncoder().encodeToString(bytes).run {
replace("+", "-").replace("/", "_").replace("=", "")
}