Skip to content

Commit 03fe9c0

Browse files
committed
remove postfixOps example
1 parent 05626b9 commit 03fe9c0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

_cheatsheets/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ languages: [ba, fr, ja, pl, pt-br, zh-cn, th, ru]
6868
<td><pre class="highlight"><code>(1 to 5).map(x =&gt; x * x)</code></pre></td>
6969
<td>Anonymous function: to use an arg twice, have to name it.</td>
7070
</tr>
71-
<tr>
72-
<td><span class="label success">Good</span><br> <pre class="highlight"><code>(1 to 5).map(2 *)</code></pre><br /> <span class="label important">Bad</span><br> <pre class="highlight"><code>(1 to 5).map(* 2)</code></pre></td>
73-
<td>Anonymous function: bound infix method.<br /> Use <code class="highlighter-rouge">2 * _</code> for sanity’s sake instead.<br />Will require <code>import scala.language.postfixOps</code> in the future.</td>
74-
</tr>
7571
<tr>
7672
<td><pre class="highlight"><code>(1 to 5).map { x =&gt;
7773
val y = x * 2

0 commit comments

Comments
 (0)