Open carstenhag opened 10 months ago
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.
subList(0, 1)
PersistentList<E>
ImmutableList<E>
This is the method that is being used:
override fun subList(fromIndex: Int, toIndex: Int): ImmutableList<E> = SubList(this, fromIndex, toIndex)
What operations of persistent list do you need to carry on the returned sublist?
Hey, I am calling
subList(0, 1)
on aPersistentList<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)