title: How to write function to compare two sets?
body: <p>I have type Set = Int => Boolean; , and function subset / how to get two sets A and B and compare them?<br>
  I wrote like </p>
  
  <pre><code>def union(a: Set, b: Set): Set = {
    (i: Int) =&gt; a(i).&amp;(b(i))==b(i) 
    }
  </code></pre>
  
  <p>compiling is successful, but it shows <code>&lt;function1&gt;</code> in output when I'm running the code.</p>