title: Can I assign a function to a variable?
body: <p>is it correct that I cannot assign a function to a variable - like:</p>
  
  <pre><code>     $h = {ID="x1";readStream=$Null;... }
       ...
       $h.readStream = function{ ... }
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>P.S. @ A.Wiechers: To me it would help a lot if ALL the Title has at first entry the prg.-langague the question is about!! For this question I have to open only needles hints which I would have been able to skip if e.g. "Can I assign a function to a variable for use within another function? 1" would start with "Python" - the entry of the tags do NOT filter the StackExchange-suggestions! This would even help to prevent duplicate entries just because the titles are similar!!</p>