Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 Summer 2026 batch! Applications are open till May 4

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

Search: