Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created March 18, 2019 13:41
Show Gist options
  • Save sajjadyousefnia/152787e741ebb5a10967500213b5fc79 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/152787e741ebb5a10967500213b5fc79 to your computer and use it in GitHub Desktop.
val letters = ('a'..'z').toList()
println(letters.slice<Char>(0..2))
println(letters.slice(10..13))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment