title: Julia automatically generate functions and export them
body: <p>I want to automatically generate some functions and export them automatically. To have some concrete example, lets say I want to build a module, which provides functions that take a signal and apply a moving average/maximum/minimum/median... to it.</p>
  
  <p>The code generation already works:</p>
  
  <pre><code>for fun in (:maximum, :minimum, :median, :mean)
    fname = symbol("$(fun)filter")
    @eval ($fname)(signal, windowsize) = windowfilter(signal, $fun, windowsize)
  end
  </code></pre>
  
  <p>Giving me functions </p>
  
  <pre><code>maximumfilter
  minimumfilter
  ...
  </code></pre>
  
  <p>But how do I export them automatically? e.g. I would like to add some code to the above loop like</p>
  
  <pre><code>export $(fname)
  </code></pre>
  
  <p>and have each function exported after creation.</p>