Closed bwbuchanan closed 6 years ago
Simpler test case:
import { Vector } from 'prelude.ts';
Vector.ofIterable(Array(86015).fill(1)).appendAll([1]);
3071 is another magic length that will break appendAll.
Both 3071 and 86015 have the property: N % 32 === 31 && Math.floor(N / 32) % 32 === 31
Thank you for the report! I'll look into this tonight. You're not really lucky with prelude bugs.. note that I just added a fuzzer test on master exactly to detect such issues.
Well, I'm using it in a production system, so that tends to find all the edge cases! :)
I released 0.7.13 with the fix! Thank you for the patience and the detailed bug reports!
This code:
Will fail after 86 iterations with: