It&#x27;s just that OP quoted a multi-line function signature plus implementation in one line, which obfuscates things.  Looking at just the comparable signature is pretty clear.<p><pre><code>    &lt;T&gt; Extension&lt;T&gt; contraMap(Function&lt;T, S&gt; f);</code></pre>