title: How to pass a function as parameter in kotlin - Android
body: <p>How to pass a function in android using Kotlin . I can able to pass if i know the function like :</p>
  
  <pre><code>fun a(b :() -&gt; Unit){
  }
  fun b(){
  }
  </code></pre>
  
  <p>I want to pass any function like -><br>
  <code>fun passAnyFunc(fun : (?) -&gt;Unit){}</code> </p>