|
|
|
|
|
by ghostwriter
1311 days ago
|
|
> In a strict language, you can say (roughly at least) that replacing [] with [1..n] will add at minimum a certain number of extra CPU cycles and a certain amount of additional allocation. It's not at minimum, it's always the worst case cost of N in strict languages, whereas the lazy setting provides you with amortized complexity. |
|
I think you might have thought I was saying that given a strict semantics it was somehow still possible that you wouldn't necessarily incur the full time and space penalty for constructing n elements (which of course is not the case).