Skip to content

Instantly share code, notes, and snippets.

@marcinOz
Created June 5, 2019 19:11
Show Gist options
  • Save marcinOz/06b896a5bc8ffb644d87cd253a17b6e8 to your computer and use it in GitHub Desktop.
Save marcinOz/06b896a5bc8ffb644d87cd253a17b6e8 to your computer and use it in GitHub Desktop.
val s = arrayOf("d", "e", "f")
val s2 = listOf("a", "b", "c", *s)
println(s2) // [a, b, c, d, e, f]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment