title: How to make it cleanly from for to Stream (Kotlin)
body: <pre><code>fun render(params: Map&lt;String, String&gt;): String {
      var acc:String = template
      for (entry in params.entries){
          acc = acc.replace("@${entry.key}", entry.value)
      }
      return acc
  }
  </code></pre>
  
  <p>Hello, I would like to make it cleanly using stream or something like that.</p>
  
  <p>Could you help me?</p>