2 ms·
From what I know about compilers(not much) - when there is calculation without variables they just compute it on the fly and substitute in the code where possib
by venomsnake 13y ago
From what I know about compilers(not much) - when there is calculation without variables they just compute it on the fly and substitute in the code where possible. And I think this is just what is going on.
You should read the n from the input or given as parameter to the program.
- dmjio 13y agoI believe it is called stream-fusion. The intermediate data-structures are optimized away (since they're unboxed), allowing for faster operations.