title: How do I use Ruby's new lambda syntax?
body: <p>Ruby has lambda syntax, so I can use the <code>-&gt;</code> symbol:</p>
  
  <pre><code>a = 0
  new  -&gt; { a &lt; 5 }  do
     puts a
     a += 1
  end
  </code></pre>
  
  <p>This works very well, but when I try to do this:</p>
  
  <pre><code>match "/", to:  -&gt; { |e| [404, {}, ["Hello! I am micro rack app"]] }, via: [:get]
  match( "/", to:  -&gt; { |e| [404, {}, ["Hello! I am micro rack app"]] }, via: [:get] )
  match( "/", { to:  -&gt; { |e| [404, {}, ["Hello! I am micro rack app"]] }, via: [:get] })
  </code></pre>
  
  <p>all of the return the same syntax error:</p>
  
  <pre><code>$ ruby -c -e 'match( "/", to:  -&gt; { |e| [404, {}, ["Hello! I am micro rack app"]] }, via: [:get] )'
  -e:1: syntax error, unexpected '|'
  match( "/", to:  -&gt; { |e| [404, {}, ["Hello! I am mi...
  </code></pre>
  
  <p>Am I missing something?</p>