|
|
|
|
|
by lenticular
2584 days ago
|
|
Check out Funkia List [0], an persistent O(log n) random access list implementation. I use it pretty extensively when I'm writing typescript. It actually can beat native arrays on concat and push, often by very wide margins, while also being immutable. These kinds of operations are actually much easier to optimize if you can assume immutability. [0] https://funkia.github.io/list/benchmarks/ |
|