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

Fechado
há 4 anos atrás aberto por ranides · 1 comentários

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 comentado há 2 anos atrás
Proprietário

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 referenciou este problema num commit há 2 anos atrás
Faça login para participar desta conversação.
Sem Objetivo
Sem utilizador atribuido
1 Participantes
A carregar...
Cancelar
Guardar
Ainda não existe conteúdo.