Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Created May 17, 2018 09:10
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 tmaxxdd/7c0a7219c13fc8e3c3b7c55f4349f979 to your computer and use it in GitHub Desktop.
Save tmaxxdd/7c0a7219c13fc8e3c3b7c55f4349f979 to your computer and use it in GitHub Desktop.
Sample about Array() constructor
// Tworzy Array<String> z wartosciami ["0", "1", "4", "9", "16"]
val asc = Array(5, { i -> (i * i).toString() })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment