Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PersistentList is missing a subList that returns a new PersistentList (currently returns ImmutableList) #150

Open
carstenhag opened this issue Aug 22, 2023 · 1 comment

Comments

@carstenhag
Copy link

Hey, I am calling subList(0, 1) on a PersistentList<E>.
Unfortunately, after the call, I am getting back a ImmutableList<E>, which I have to convert to a persistent list again.

This is the method that is being used:

override fun subList(fromIndex: Int, toIndex: Int): ImmutableList<E> = SubList(this, fromIndex, toIndex)

@ilya-g
Copy link
Member

ilya-g commented Aug 24, 2023

What operations of persistent list do you need to carry on the returned sublist?

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

No branches or pull requests

2 participants