Kotlin’s way to make DSLs and many standard library functions work

Kotlin Function Literals with Receiver — The basis for DSLs and many Library Functions

Simon Wirtz
Published in
4 min readSep 8, 2022

--

As we know, Kotlin makes heavy use of functions that take other functions as their argument. This is one of two types of functions we call higher-order function. Related to this, Kotlin also comes with…

--

--

🌍 🧑‍💻 I am a Freelance Software Engineer and Expert for Kotlin and Java. I write about code, software engineering, interviewing, traveling, and more 🔥