title: Kotlin Map with If statement
body: <p>Trying to write some Functional code and use map - maybe filter too? - to replace something like:</p>
  <pre><code>for (something in somethingList) {
      if (something.value == someOtherThing.value)
          result = true
  } 
  </code></pre>
  <p>With something more functional like found here: <a href="https://grokonez.com/kotlin/kotlin-filter-map-examples" rel="nofollow noreferrer">https://grokonez.com/kotlin/kotlin-filter-map-examples</a></p>
  <p>But I don't want to return a new map I want to set <code>result</code> to the condition of <code>something.value == someOtherThing.value</code> being true or not.</p>
  <p>But I'm getting lost in my neophyte world of Functional Kotlin.</p>
  <p>Can anyone nudge me in the right direction?</p>
  <p>Thanks</p>