Skip to content

Instantly share code, notes, and snippets.

@ataulm
Last active August 10, 2018 10:48
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 ataulm/9f8f537c75043f3ee88d79b079c3db19 to your computer and use it in GitHub Desktop.
Save ataulm/9f8f537c75043f3ee88d79b079c3db19 to your computer and use it in GitHub Desktop.
// Collection<T>.plus(elements: Iterable<T>): List<T>
val a = listOf(1, 2, 3)
val b = listOf(4, 5, 6)
println(a + b) // prints [1, 2, 3, 4, 5, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment