title: What does the single-right-arrow (→) mean for collections in Scala?
body: <p>When I use auto-complete on lists on InteliJ, it shows a single-right-arrow, with no documentation on what it means. It looks like →. In an example, it's called as:</p>
  
  <pre><code>val sampleList: List[String] = List("a", "b", "c");
  sampleList.→()
  </code></pre>
  
  <p>I don't know what goes in the parenthesis, I can't use it like a spark map either, so doing <code>s =&gt; s</code> shows an error. And on the Scala documentation <a href="https://www.scala-lang.org/api/2.12.3/scala/collection/immutable/List.html" rel="noreferrer">online</a>, the arrow operator isn't listed.</p>
  
  <p>This is how it shows up on the auto-complete
  <a href="https://i.stack.imgur.com/MFWr1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MFWr1.png" alt="enter image description here"></a></p>
  
  <p>What would be an example usage of this arrow operator?</p>