Skip to content

Instantly share code, notes, and snippets.

@s1monw1
Created September 16, 2022 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s1monw1/a8b5492769c408dc47ed9f6287833cfb to your computer and use it in GitHub Desktop.
Save s1monw1/a8b5492769c408dc47ed9f6287833cfb to your computer and use it in GitHub Desktop.
val s: String = with(StringBuilder("init")) {
append("some").append("thing")
println("current value: $this")
toString()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment