3 ms·
How do functional programming languages optimises these?
by avinassh 5y ago
How do functional programming languages optimises these?
- oweiler 5y agoI don't know about other languages, but in Kotlin these are normally inlined, which means no allocation.
- chakkepolja 5y agoMost of them, using compilers ('deforestation' optimizations etc..), and of course they also provide escape hatches for tight loops.