<?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>functions</title><link>https://community.appian.com/discussions/f/user-interface/19615/functions</link><description>1) I want to display the number of characters in the word 
 Eg: If the word is Choose then output should be C-1,h-1,o-2,s-1,e-1. 
 Can anyone help with complete code or is there any function? Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: functions</title><link>https://community.appian.com/thread/76644?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 02:44:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0d4f690-9ccf-44e0-8c40-f195f834f9ad</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Thanks Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: functions</title><link>https://community.appian.com/thread/76643?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 02:43:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d217fdb4-c398-4aa4-a6fd-9f3ae3f63235</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Thanks for helping..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: functions</title><link>https://community.appian.com/thread/76642?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 02:43:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f6d59af-490d-479b-bd4b-e5202ed3f042</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Thanks a lot..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: functions</title><link>https://community.appian.com/thread/76641?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 21:06:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7818d992-19b4-42de-960f-c1c05c1c8733</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Yes, code() is pretttty handy for these type of expressions.&amp;nbsp; 1 ms run time with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!word: code(&amp;quot;Choose&amp;quot;),
  a!forEach(
    items: union(local!word,local!word),
    expression: {
      concat(char(fv!item),&amp;quot;-&amp;quot;,count(wherecontains(fv!item,local!word)))
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: functions</title><link>https://community.appian.com/thread/76640?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 19:58:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48d87e3e-74ac-4fe5-8309-2967c5d006c4</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You could also do the split by using &amp;quot;code()&amp;quot; which converts any string into an array of char codes.&amp;nbsp; So, &lt;em&gt;char(code(local!word))&lt;/em&gt; would result in the array {&amp;quot;c&amp;quot;, &amp;quot;h&amp;quot;... [etc]}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: functions</title><link>https://community.appian.com/thread/76637?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 18:57:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fc64ba7-7775-4d14-af1f-b1de6ac735d4</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!word: &amp;quot;choose&amp;quot;,
  local!split: a!forEach(
    enumerate(len(local!word)),
    charat(local!word,fv!index)
  ),
  local!letterCount: a!forEach(
    local!split,
    {
      character: fv!item,
      count: length(wherecontains(fv!item,local!split))
    }
  ),
  union(local!letterCount,local!letterCount)
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;There may be a more efficient way to do it but this will work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>