title: What is the purpose of using the arrow symbol(->) at the start of the method?
body: <p>While going through a tutorial, I came across the following code and didn't understand why the arrow symbol was used at the start of the method</p>
  
  <p>I tried searching about the arrow operator but it looks like it has many uses, and I couldn't find an answer to my question.</p>
  
  <pre><code>someButton.setOnClickListener { view -&gt; 
      someMethod()
  }
  </code></pre>
  
  <p>I did not understand why 'view ->' is used. I know I'm a beginner and this question might be too silly to ask, but I can't find an answer anywhere on the internet. Any help would be appreciated.</p>
  
  <p>Thank you :)</p>