lacuna / bifurcan

functional, durable data structures
MIT License
967 stars 51 forks source link

Fix forking SortedSet #38

Closed zolotov closed 2 years ago

zolotov commented 2 years ago

Now SortedSet#forked always returns this, even if it was linearized before. This may lead to the following behavior:

val set = SortedSet<Int>().add(1).linear().forked()
set.add(2)
println(set.toList())
===
[1, 2]
ztellman commented 2 years ago

Thanks for catching this! I'll cut a new release in the near future.