📅  最后修改于: 2022-03-11 14:47:49.177000             🧑  作者: Mango
//Extenion function
fun String.removeWhitespaces() = replace(" ", "")
// Uses
var str = "This is an example text".removeWhitespaces()
println(str)