kind of problem rather than a general purpose language that can be used to address any kind of problem. In other words with a DSL you are writing a programming language by your own to solve a particular problem you are facing.” - Martin Fowler DOMAIN-SPECIFIC LANGUAGE
// is to fun function(s: String): List<String> { return s.split("/") } // as val functionLiteralWithReceiver: String.() -> List<String> = { this.split("/") } // is to fun String.extensionFunction(): List<String> { return function(this) }