slice()๋ ์๋ณธ List๋ฅผ ์๋ผ ์๋ก์ด List๋ฅผ ๋ง๋ค์ด ๋ฆฌํด
subList()๋ ์๋ณธ List๋ฅผ ์ํ๋ ๊ตฌ๊ฐ๋งํผ๋ง ์๋ผ์ ๋ณด์ฌ์ค๋ค.
val a = "abcdef"
println(a.slice(2..3))
cd
val a = "abcdef"
println(a.take(4))
abcd
val a = "abcdef"
println(a.takeLast(4))
cdef