<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, remove commas from a list</title>
    <link>http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 10:20:14 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 10:20:14 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, remove commas from a list</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, remove commas from a list</title>
      <link>http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List</link>
    </image>
    <item>
      <title>With StringTools[Join]</title>
      <link>http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List?ref=Feed:MaplePrimes:remove commas from a list:Comments#answer127700</link>
      <itunes:summary>&lt;p&gt;It can be done as follows.&lt;br&gt;&amp;gt; restart; L := [1, a, x^2, aBba, c+f(x)];&lt;br&gt;&amp;gt; StringTools[Join]([seq(convert(L[j], string), j = 1 .. nops(L))], "");&lt;br&gt;&amp;gt; convert(%, name);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1ax^2aBbac+f(x)&lt;br&gt;See &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=StringTools[Join]' target='_new'&gt;?StringTools[Join]&lt;/a&gt; , &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=convert' target='_new'&gt;?convert&lt;/a&gt; for more details.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It can be done as follows.&lt;br&gt;&amp;gt; restart; L := [1, a, x^2, aBba, c+f(x)];&lt;br&gt;&amp;gt; StringTools[Join]([seq(convert(L[j], string), j = 1 .. nops(L))], "");&lt;br&gt;&amp;gt; convert(%, name);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1ax^2aBbac+f(x)&lt;br&gt;See &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=StringTools[Join]' target='_new'&gt;?StringTools[Join]&lt;/a&gt; , &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=convert' target='_new'&gt;?convert&lt;/a&gt; for more details.&lt;/p&gt;</description>
      <guid>127700</guid>
      <pubDate>Sun, 13 Nov 2011 17:45:26 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>for fun</title>
      <link>http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List?ref=Feed:MaplePrimes:remove commas from a list:Comments#answer127751</link>
      <itunes:summary>&lt;p&gt;Just for fun,&lt;/p&gt;
&lt;pre&gt;&amp;gt; cat(nprintf~("%a",L)[]);
                        1ax^2aBbac+f(x)
&lt;/pre&gt;
&lt;p&gt;Part of the jape seems to be whether the spaces between entries and commas are wanted.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Just for fun,&lt;/p&gt;
&lt;pre&gt;&amp;gt; cat(nprintf~("%a",L)[]);
                        1ax^2aBbac+f(x)
&lt;/pre&gt;
&lt;p&gt;Part of the jape seems to be whether the spaces between entries and commas are wanted.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>127751</guid>
      <pubDate>Tue, 15 Nov 2011 07:38:52 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>cat(seq(sprintf("%a ",i),i=L));</title>
      <link>http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List?ref=Feed:MaplePrimes:remove commas from a list:Comments#answer127796</link>
      <itunes:summary>&lt;p&gt;cat(seq(sprintf("%a ",i),i=L));&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;cat(seq(sprintf("%a ",i),i=L));&lt;/p&gt;</description>
      <guid>127796</guid>
      <pubDate>Wed, 16 Nov 2011 12:50:58 Z</pubDate>
      <itunes:author>roman_pearce</itunes:author>
      <author>roman_pearce</author>
    </item>
    <item>
      <title>Modification</title>
      <link>http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List?ref=Feed:MaplePrimes:remove commas from a list:Comments#comment127760</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List#comment127751"&gt;@acer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt;restart; with(StringTools):&lt;br&gt;&amp;gt; L := [1, a, x^2, aBba, c+f(x)]:&lt;br&gt;&amp;gt;Join([seq(Center(convert(L[j], string), length(convert(L[j], string))+2), j = 1 .. nops(L))], ""):&lt;br&gt;&amp;gt; convert(%, name)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; a&amp;nbsp; x^2&amp;nbsp; aBba&amp;nbsp; c+f(x)&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List#comment127751"&gt;@acer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt;restart; with(StringTools):&lt;br&gt;&amp;gt; L := [1, a, x^2, aBba, c+f(x)]:&lt;br&gt;&amp;gt;Join([seq(Center(convert(L[j], string), length(convert(L[j], string))+2), j = 1 .. nops(L))], ""):&lt;br&gt;&amp;gt; convert(%, name)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; a&amp;nbsp; x^2&amp;nbsp; aBba&amp;nbsp; c+f(x)&lt;/p&gt;</description>
      <guid>127760</guid>
      <pubDate>Tue, 15 Nov 2011 18:46:54 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>Simpler</title>
      <link>http://www.mapleprimes.com/questions/127696-Remove-Commas-From-A-List?ref=Feed:MaplePrimes:remove commas from a list:Comments#comment127808</link>
      <itunes:summary>&lt;p&gt;sprintf("%{}q",&amp;lt;L&amp;gt;);&lt;/p&gt;
&lt;p&gt;Well, shorter anyhow.&amp;nbsp; See &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=printf"&gt;?printf&lt;/a&gt; and &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=rtable_printf"&gt;?rtable_printf&lt;/a&gt; for details.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;sprintf("%{}q",&amp;lt;L&amp;gt;);&lt;/p&gt;
&lt;p&gt;Well, shorter anyhow.&amp;nbsp; See &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=printf"&gt;?printf&lt;/a&gt; and &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=rtable_printf"&gt;?rtable_printf&lt;/a&gt; for details.&lt;/p&gt;</description>
      <guid>127808</guid>
      <pubDate>Wed, 16 Nov 2011 22:23:12 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
  </channel>
</rss>