3 ms·
> In functional languages it's not actually going to allocate a whole new array each time an immutable list is appended to, but that's exactly what will happen
by pyrale 5y ago
> In functional languages it's not actually going to allocate a whole new array each time an immutable list is appended to, but that's exactly what will happen in JavaScript.
Efficiency depends on how your js runtime is optimized. Elm works fine, for instance.