kotlinx.collections.immutable

Immutable persistent collections for Kotlin (by Kotlin)

Kotlinx.collections.immutable Alternatives

Similar projects and alternatives to kotlinx.collections.immutable

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better kotlinx.collections.immutable alternative or higher similarity.

kotlinx.collections.immutable reviews and mentions

Posts with mentions or reviews of kotlinx.collections.immutable. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-11.
  • Is there a way to atomically add to a list and return its index?
    1 project | /r/Kotlin | 8 Dec 2023
    In Clojure, it is called an Atom. I created my own via AtomicReference and https://github.com/Kotlin/kotlinx.collections.immutable. It works really well in Kotlin. It works especially well if you use tons of coroutines.
  • I had a great experience with Scala and hopefully it will get more popular
    10 projects | /r/scala | 11 Jul 2023
    So does Java! Also, kotlinx.collections is still not stable and I don't think they are intending to make it so any time soon.
  • Immutable lists, O(1) prepend/append
    1 project | /r/Kotlin | 10 Jul 2023
    If you want to have O(1) with prepend you use the LinkedList. You get a lot of functional benefits but also all of the downsides like no random access. You can use the https://github.com/Kotlin/kotlinx.collections.immutable library to get O(log_64(n)). I haven't spent a ton of time on Tries so I might be a little wrong on that bound. BTW, these are persistent immutable data structures. At work, we use them inside of AtomicReference to roll our own Clojure Atoms.
  • What type of variable contains amutable list?
    1 project | /r/Kotlin | 5 Nov 2022
    This is why Kotlin refers to List as read-only, and not immutable, and has created a library for truly immutable collections: https://github.com/Kotlin/kotlinx.collections.immutable
  • what is the best persistent collection library?
    5 projects | /r/java | 2 Sep 2022
    What I know is only based on this discussion. It seems that pcollections is really outdated and should not be considered.
  • A personal Kotlin guide for Java developers
    2 projects | /r/Kotlin | 24 Mar 2021
    If you want true immutable collections, kotlinx.collections.immutable provides them. They will likely be integrated into the language eventually with value classes and better immutability support.
  • Scala is a Maintenance Nightmare
    5 projects | /r/programming | 22 Mar 2021
    I could see this argument made with Clojure, but I don't really see what makes Scala significantly better at FP than Kotlin. Kotlin has an official persistent data structures library nowadays, and it's got lambdas and higher order functions.
  • What are your concerns and pet peeves about Kotlin so far?
    2 projects | /r/Kotlin | 18 Jan 2021
    It's not immutable, it's read-only, https://kotlinlang.org/docs/reference/collections-overview.html . I think that's a false assumption. But I get the point - immutable collections are not part of the std - for very good reasons. But we know each other, I assume that you will disagree :) For people who know what they want and know all the implications, there is https://github.com/Kotlin/kotlinx.collections.immutable .
  • A note from our sponsor - SaaSHub
    www.saashub.com | 25 Apr 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic kotlinx.collections.immutable repo stats
10
1,081
7.3
7 days ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com