How to define type-safe DSL (Domain Specific Language) builders in Kotlin?
Read the article written by @marcinmoskala 👇
https://kt.academy/article/fk-dsl
This publication comes from the Functional Kotlin book. You can find the Early Access here: 👇
https://leanpub.com/kotlin_functional