https://kotlinlang.org logo
#announcements
Title
# announcements
k

Konstantin Petrukhnov

04/23/2018, 6:00 AM
Yes, that part is clear. Question was about internal implementation. E.g. i sublist 1000 items from 5K list. Will it create new list, and put 1000 references there? Or will it create new object that could work as list, but just store references to first point, and its length? Java sources for ArrayList shows 2nd way (through creating SubList).