<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi:  Groovy  doesn't  accept  lambdas? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Groovy-doesn-t-accept-lambdas/m-p/230221#M192071</link>
    <description>&lt;P&gt;IIRC, Groovy 3 is supposed to support the Java lambda syntax, but NiFi uses Groovy 2 which does not support it. However Groovy has always had &lt;A target="_blank" href="http://groovy-lang.org/closures.html"&gt;Closures&lt;/A&gt;, which are very similar and used for the same purpose, so despite a small difference in syntax, you should be able to use Groovy closures the same as you would use Java lambdas.  If you are referring to the Java Streams API (things like foreach() that take a lambda), Groovy has iterative and aggregate functions for that too, such as &lt;A target="_blank" href="http://mrhaki.blogspot.com/2009/09/groovy-goodness-looping-in-different.html"&gt;each() and eachWithIndex()&lt;/A&gt;, &lt;A target="_blank" href="http://mrhaki.blogspot.com/2010/01/groovy-goodness-apply-method-to-all.html"&gt;spread-dot and collect()&lt;/A&gt;, etc.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 20:02:28 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2017-10-18T20:02:28Z</dc:date>
    <item>
      <title>Nifi:  Groovy  doesn't  accept  lambdas?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Groovy-doesn-t-accept-lambdas/m-p/230220#M192070</link>
      <description>&lt;P&gt;I want  to know  if  nifi  1.3.0 version  contains   groovy  version  in  which  i can  use   lambdas?.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 19:46:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Groovy-doesn-t-accept-lambdas/m-p/230220#M192070</guid>
      <dc:creator>salome_tkhilais</dc:creator>
      <dc:date>2017-10-18T19:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi:  Groovy  doesn't  accept  lambdas?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Groovy-doesn-t-accept-lambdas/m-p/230221#M192071</link>
      <description>&lt;P&gt;IIRC, Groovy 3 is supposed to support the Java lambda syntax, but NiFi uses Groovy 2 which does not support it. However Groovy has always had &lt;A target="_blank" href="http://groovy-lang.org/closures.html"&gt;Closures&lt;/A&gt;, which are very similar and used for the same purpose, so despite a small difference in syntax, you should be able to use Groovy closures the same as you would use Java lambdas.  If you are referring to the Java Streams API (things like foreach() that take a lambda), Groovy has iterative and aggregate functions for that too, such as &lt;A target="_blank" href="http://mrhaki.blogspot.com/2009/09/groovy-goodness-looping-in-different.html"&gt;each() and eachWithIndex()&lt;/A&gt;, &lt;A target="_blank" href="http://mrhaki.blogspot.com/2010/01/groovy-goodness-apply-method-to-all.html"&gt;spread-dot and collect()&lt;/A&gt;, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 20:02:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Groovy-doesn-t-accept-lambdas/m-p/230221#M192071</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-10-18T20:02:28Z</dc:date>
    </item>
  </channel>
</rss>

