Lambda implementation of interface in kotlin : <p>What would be the equivalent of that code in kotlin, nothing seems to work of what I try:</p>

<pre><code>public interface AnInterface {
    void doSmth(MyClass inst, int num);
}
</code></pre>

<p>init:</p>

<pre><code>AnInterface impl = (inst, num) -&gt; {
    //...
}
</code></pre>
