title: How to apply function elementwise in Julia?
body: <p>There's a function <code>h(x) = ([1, x]' * [2, 3])[1]</code></p>
  
  <p>Let's suppose I'd like to plot it and get <code>X</code> and <code>Y</code>. One possible way to do it is following </p>
  
  <pre><code>X = [1 2 3]
  Y = [h(xi) for xi in X]
  </code></pre>
  
  <p>But, it seems like it's also possible to do the same using elementwise operator in Julia?</p>
  
  <p>Unfortunately prefixing the function with the dot <code>.h(X)</code> doesn't work.</p>