<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Online Course - Advanced Expressions: Part 2</title><link>https://community.appian.com/discussions/f/administration/27969/online-course---advanced-expressions-part-2</link><description>Hi, everyone. 
 
 I&amp;#39;m learning from &amp;quot;Online Course - Advanced Expressions: Part 2&amp;quot;. I have a question about &amp;quot;Exercise: Looping Functions (Online Course | Learning at Appian)&amp;quot;. 
 Exercise: Looping Functions( Online Course | Learning at Appian ) 
 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Online Course - Advanced Expressions: Part 2</title><link>https://community.appian.com/thread/108854?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 00:31:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b9c6d43-c326-467e-8999-2d8094c7d5ad</guid><dc:creator>masanobukana</dc:creator><description>&lt;p&gt;thanks, all。&lt;/p&gt;
&lt;p&gt;I will open a support case as per your recommendation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And when I use reduce() I use it differently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Online Course - Advanced Expressions: Part 2</title><link>https://community.appian.com/thread/108813?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 13:47:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bb78084-da39-436d-b330-3d8c368a41bf</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Hmm, I&amp;#39;m not sure what&amp;#39;s going on, it&amp;#39;s possible something isn&amp;#39;t getting handled correctly with nested lists - you might want to open a support case. In the meantime, I think you can get the correct results if you flatten the list before passing it to reduce(). I also follow up internally on the course exercise!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Online Course - Advanced Expressions: Part 2</title><link>https://community.appian.com/thread/108800?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 08:13:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e4629b8-31a6-4360-9361-f262692acedb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I see the same behaviour on my Appian 23.1. I changed the code a bit to highlight the problem.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(

  local!sensor: {
    a!map(data: {125,92,22,63,73,28,19}),
    a!map(data: {35, 65,92,22,63,73,28}),
    a!map(data: {2,  35,65,22,63,73,18,29}),
    a!map(data: {9,  35,65,63,35,28,19})
  },
  
  local!sum1: sum(1, local!sensor[1].data),
  local!sum2: sum(local!sum1, local!sensor[2].data),
  local!sum3: sum(local!sum2, local!sensor[3].data),
  local!sum4: sum(local!sum3, local!sensor[4].data),
  a!map(
    reduceResult: reduce(fn!sum, 1, local!sensor.data),
    manualResult: local!sum4,
    sumOnly: sum(1, local!sensor.data)
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/members/peter.lewis"&gt;Peter Lewis&lt;/a&gt;, do you have any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>