<?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>Reverse a String without using reverse function</title><link>https://community.appian.com/discussions/f/rules/38437/reverse-a-string-without-using-reverse-function</link><description>I&amp;#39;m unable to find where the mistake is in below code Reverse a string without reverse function:</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Reverse a String without using reverse function</title><link>https://community.appian.com/thread/144979?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 15:19:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e66eef3-19d6-4e2b-9c8f-88fabad14fde</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Stefan&amp;#39;s elegant tiny answer got me thinking about what the &amp;quot;elegant but somewhat more verbose&amp;quot; answer might be.&amp;nbsp; Once again we can rely on a!forEach() and the dataSubset sort.&amp;nbsp; The advantage with this approach is it could potentially handle use cases with a little more nuance if needed.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!sortMap: a!forEach(
    enumerate(len(ri!text))+1,
    
    a!map(
      index: fv!item,
      currentLetter: ri!text[fv!item]
    )
  ),
  
  local!sortedSet: todatasubset(
    arrayToPage: local!sortMap,
    pagingConfiguration: a!pagingInfo(1, -1, a!sortInfo(field: &amp;quot;index&amp;quot;, ascending: false()))
  ).data,
  
  concat(local!sortedSet.currentLetter)
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1738336789176v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reverse a String without using reverse function</title><link>https://community.appian.com/thread/144978?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 15:18:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6172eaf-863c-4787-bf09-92f480e8904d</guid><dc:creator>tanujd6440</dc:creator><description>&lt;p&gt;Thanks, I got to learn new way of problem solving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reverse a String without using reverse function</title><link>https://community.appian.com/thread/144977?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 15:11:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9350136-9d55-4e5a-8da1-fd2aabc87fc1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;No recursion required&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ri!text[len(ri!text) - enumerate(len(ri!text))]&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>