String Templates and Multiline Strings in Kotlin
Reading Time: 3 minutes String Templates In programs, we often create strings with embedded values of expressions. Concatenating values to create strings using the + operator makes the code verbose and hard to maintain. String templates solve that problem by providing an elegant solution. Within a double-quoted string, the $ symbol can prefix any variable to turn that into an expression. If the expression is more complex than a Continue Reading