fun main(args : Array<String>){
//withTwo()
withOne()
}
fun withOne(){
val message = "Hello Kotlin!"
val result = with(message){
println("value is $this")
println("with length ${this.length}")
}
}
fun withTwo(){
val message = "Hello Kotlin!"
val result = with(message){
"First character is ${this[0]}" +
" and last character is ${this[this.length - 1]}"
}
println(result)
}