3 ms·
GP explicitly covered this: Just expand your fixed-size array to the required size, it's still not a big array. It solves the exact problem, the map is overkill
by _0ffh 5y ago
GP explicitly covered this: Just expand your fixed-size array to the required size, it's still not a big array. It solves the exact problem, the map is overkill and overly complicated. The problem is, the map is only more complicated in the resulting binary, not in the library users' source code.
- eru 5y agoNot sure the binary comes into it. The map in this language has a more complicated API than the array (because iteration is a bit more complicated).