Hacker News new | past | comments | ask | show | jobs | submit login

How do functional programming languages optimises these?



I don't know about other languages, but in Kotlin these are normally inlined, which means no allocation.


Most of them, using compilers ('deforestation' optimizations etc..), and of course they also provide escape hatches for tight loops.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: