<?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>looping through a dictionary</title><link>https://community.appian.com/discussions/f/data/24157/looping-through-a-dictionary</link><description>I&amp;#39;ve got a dictionary of values and I would like to either loop through it for a grid, or convert it to something I can loop through. How might I do that? 
 
 For example, I&amp;#39;ve got this dictionary: 
 {A: 3.1, B: 2.2, C: 1.3} 
 
 I&amp;#39;d like to have a table</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: looping through a dictionary</title><link>https://community.appian.com/thread/105880?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 22:59:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfa3c32d-94e1-413c-90f7-2a25603e6873</guid><dc:creator>aj2000</dc:creator><description>&lt;p&gt;That&amp;#39;s... silly...&lt;br /&gt;I don&amp;#39;t quite understand how to output a dictionary after that. Is there a way to build a dictionary or map?&lt;br /&gt;I can loop over the keys with forEach, but the output is always an array. I&amp;#39;d like to iterate over a dictionary or map to transform it into a new map but I can&amp;#39;t seem to see how to add keys to an existing map, or mutate the value of an existing key. Are dictionaries and maps just immutable? It doesn&amp;#39;t say that clearly anywhere in the documentation.&lt;br /&gt;I have a large dictionary and I want to find a few keys and change them slightly without re-declaring the whole dictionary in an expression. Is this possible? I&amp;#39;ve opened a discussion here (&lt;a href="/discussions/f/data/26960/mutate-a-dictionary-or-map"&gt;https://community.appian.com/discussions/f/data/26960/mutate-a-dictionary-or-map&lt;/a&gt;) but I posted another discussion question about something else a month ago and nobody has replied so the community here doesn&amp;#39;t look very active to me. I was shocked and happy that you replied here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: looping through a dictionary</title><link>https://community.appian.com/thread/105878?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 22:02:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dab9b9a3-e96d-4020-88b0-38f13f72baba</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;It was hard (if possible at all requiring weird work-arounds).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: looping through a dictionary</title><link>https://community.appian.com/thread/105877?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 21:28:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f84d534d-b203-427f-9edb-72c7fb565ae9</guid><dc:creator>aj2000</dc:creator><description>&lt;p&gt;Could you just not loop through a dictionary until version 21.4...? How did you do it before that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: looping through a dictionary</title><link>https://community.appian.com/thread/93146?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 19:43:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3198f51-17eb-4daa-a965-801de95abbbd</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Perfect, that&amp;#39;s what I needed!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: looping through a dictionary</title><link>https://community.appian.com/thread/93145?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 19:43:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f05e480-4645-41f2-a483-f00b5df6fae6</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;There&amp;#39;s also the&amp;nbsp;&lt;span&gt;getKeysFromDictionary function from the&lt;/span&gt;&amp;nbsp;&lt;a href="/b/appmarket/posts/cdt-manipulation"&gt;https://community.appian.com/b/appmarket/posts/cdt-manipulation&lt;/a&gt;&amp;nbsp;plugin if you&amp;#39;re on a version prior to 21.4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: looping through a dictionary</title><link>https://community.appian.com/thread/93144?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 19:32:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b26328b5-3118-41a2-ad47-0885bb158e56</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In 21.4 we got the &lt;a href="https://docs.appian.com/suite/help/21.4/Appian_Release_Notes.html#easily-access-keys-of-data-types-with-a!keys()"&gt;new function a!keys&lt;/a&gt;, which grabs all keys used within a dictionary and returns them in a text array.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>