#78 FlatList#join(index,list) add joining at element index

Stängd
öppnade 4 år sedan av ranides · 1 kommentarer
ranides kommenterad 4 år sedan

At this moment join uses index related to number of merged lists, not elements. It would be good to use element indexing.

That means: if you merged 4 lists of size 10, then you can join at positions: 0...3

We want: join at any position 0...40

What is necessary: Support for virtual splitted lists. That means: list should be split into two views which behaves almost identically as ordinary subLists, but are a bit better prepared for insertions and deletions (for example tail list can degenerate to empty list)

At this moment `join` uses index related to number of merged lists, not elements. It would be good to use element indexing. That means: if you merged 4 lists of size 10, then you can join at positions: 0...3 We want: join at any position 0...40 What is necessary: Support for virtual splitted lists. That means: list should be split into two views which behaves almost identically as ordinary subLists, but are a bit better prepared for insertions and deletions (for example tail list can degenerate to empty list)
ranides kommenterad 2 år sedan
Ägare

In reality, we don't need mutable FlatList. It will make more problems that solutions.

We are not going to add new methods, but what's more: we removed almost all join methods except one, adding to the end.

In reality, we don't need mutable FlatList. It will make more problems that solutions. We are not going to add new methods, but what's more: we removed almost all `join` methods except one, adding to the end.
ranides refererade till detta ärende från en incheckning 2 år sedan
Logga in för att delta i denna konversation.
Ingen Milsten
Ingen förvärvare
1 Deltagare
Laddar...
Avbryt
Spara
Det finns inget innehåll än.