title: Why I can't apply => to function with void?
body: <p>Sugar works with <code>map</code></p>
  <pre><code>import sugar 
  
  proc map2*[T, R](list: openArray[T]; cb: proc (x: T): R): seq[R] =
    for v in list: result.add(cb(v))
    result
    
  echo @[1, 2].map2((v) =&gt; v*v)
  </code></pre>
  <p>But not with <code>each</code>, seems like it somehow related to <code>void</code>, is there a way to make it work with <code>void</code> too?</p>
  <pre><code>import sugar 
  
  proc each2*[T](list: openArray[T]; cb: proc (x: T): void): void =
    for v in list: cb(v)
  
  @[1, 2].each2((v) =&gt; echo v)
  </code></pre>