Skip to content

LazyList implements RandomAccess#625

Open
Miha-x64 wants to merge 1 commit into
greenrobot:masterfrom
Miha-x64:patch-2
Open

LazyList implements RandomAccess#625
Miha-x64 wants to merge 1 commit into
greenrobot:masterfrom
Miha-x64:patch-2

Conversation

@Miha-x64

Copy link
Copy Markdown

Resolves #624

Positional access in LazyList is as fast as sequential, positional for-each (`for (int i = 0; i < size; i++)`) is as fast as iterator for-each (`for (E e : list)`), and thus this class should implement java.util.RandomAccess.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant