title: Kotlin function that returns 0 for negative values and the same value for positive ones
body: <p>I'm a bit annoyed with the line of code below. I'm wondering if there are any build-in function in the Kotlin SDK that could do the same in a more elegant way.</p>
  <pre><code>val result = if (value &gt; 0) value else 0
  </code></pre>