title: Syntax error using reduce() in puppet class
body: <p>I am trying to figure out whether my host has any of the ips in the <code>$target_node_ips</code> array </p>
  
  <pre><code>$is_target_node = $target_node_ips.reduce(false) |$memo, $entry| { has_ip_address($entry) or $memo }
  </code></pre>
  
  <p>however this leads to the following error</p>
  
  <pre><code>Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '.'; expected '}' at service.pp:44
  </code></pre>
  
  <p>Can anybody shed some light on what's wrong? Both puppet master and the client run puppet 3.2</p>