|
|
|
|
|
by bjoli
1535 days ago
|
|
The simple explanation is "take the bit partitioned immutable vectors and relax the leftwise dense requirement" and then sprinkle some magic implementation dust in between that and the finished implementation. On a more serious note: the only complex piece of code to write is the merge and split operations, but since the structure of the tree is given it isn't theoretically hard. It is just a pain in the ass. There are two high quality implementations. One for c++ (immer) and the one in scala. Bagwell did a talk about it on YouTube as well. |
|