kotlinx.collections.immutable icon indicating copy to clipboard operation
kotlinx.collections.immutable copied to clipboard

Immutable persistent collections for Kotlin

Results 68 kotlinx.collections.immutable issues
Sort by recently updated
recently updated
newest added
trafficstars

The project takes the same set of Gradle parameters as the [kotlinx-benchmark](https://github.com/Kotlin/kotlinx-benchmark) project. Namely, `kotlin_version` specifies the Kotlin version to use, `kotlin_repo_url` specifies the repository to download artifacts from.

Is there a way to customize the collections to use referential equality that I'm not aware of, or is it not available yet? Many thanks.

Hi everyone. We have been using kotlinx collections immutable for some years and we finally found a bug :worried: I don't know exactly why it happens, but I can simulate...

bug

It would be nice to have non-empty variants of the immutable/persistent collections for modeling one-or-more scenarios. See: https://youtrack.jetbrains.com/issue/KT-21217/Non-empty-collections.

Adding elements to lists of lists unfortunately comes with long-standing resolution issues for the operator functions: https://youtrack.jetbrains.com/issue/KT-9992 That means the following code works: ```kotlin var a = persistentListOf() a +=...

Can we have something like: ```kotlin private const val INVALID_INDEX = -1 fun emptyImmutableList(): ImmutableList = EmptyImmutableList internal object EmptyImmutableIterator : ListIterator { override fun hasNext(): Boolean = false override...

Current naming is confusing In stdlib removeAll/retainAll modify collections in place, while filter/filterNot return new ones. In kotlinx.collections.immutable removeAll/retainAll return ones and filter/filterNot are taken from stdlib, so they do...

Is there any plan to add a PersistentQueue collection?

enhancement
question

The primary focus of our current development is to promote the library from Alpha to Beta [stability level](https://kotlinlang.org/docs/components-stability.html). The implementation is already robust, with few bugs reported since its inception....

I'm not familiar with functional programming and just a Kotlin programmer. It would be awesome if someone could add a simple explanation about what a Persistent Collection is and how...

doc