File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,6 @@ permalink: /cheatsheets/index.html
69
69
<td><pre class="highlight"><code>(1 to 5).map(x => x * x)</code></pre></td>
70
70
<td>Anonymous function: to use an arg twice, have to name it.</td>
71
71
</tr>
72
- <tr>
73
- <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>
74
- <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>
75
- </tr>
76
72
<tr>
77
73
<td><pre class="highlight"><code>(1 to 5).map { x =>
78
74
val y = x * 2
You can’t perform that action at this time.
0 commit comments