<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List of Strings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807059#M98586</link>
    <description>&lt;P&gt;Yes, see&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806737/highlight/true#M98527" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806737/highlight/true#M98527&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I agree, it's very well described in the &lt;STRONG&gt;Scripting Guide&lt;/STRONG&gt;. Interesting that the LLM did not find / use (?)&amp;nbsp; this information.&lt;BR /&gt;&lt;BR /&gt;From the &lt;STRONG&gt;Scripting Index&lt;/STRONG&gt; and the &lt;STRONG&gt;JSL syntax reference&lt;/STRONG&gt; it's not possible to get this detail.&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;Scripting Index: ...&amp;nbsp;&lt;/STRONG&gt;without executing the code - and interpreting the result].&lt;/P&gt;&lt;P&gt;Some comments / details will help the users - and the LLM.&lt;BR /&gt;&lt;BR /&gt;Once the documentation can be found and understood by a LLM, JSL coding will be like heaven : )&lt;/P&gt;</description>
    <pubDate>Sat, 19 Oct 2024 19:55:19 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-10-19T19:55:19Z</dc:date>
    <item>
      <title>List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806726#M98525</link>
      <description>&lt;P&gt;To create a matrix of N identical numbers, I can use J(N, 1, number).&lt;/P&gt;&lt;P&gt;What is the shortest (syntax) and fastest way to create a list of N identical strings?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 10:02:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806726#M98525</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-18T10:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806731#M98526</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Repeat({"A"}, 1000)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Oct 2024 10:03:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806731#M98526</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-18T10:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806737#M98527</link>
      <description>&lt;P&gt;: )&lt;BR /&gt;&lt;BR /&gt;Scripting Index -&amp;gt; Online Help -&amp;gt; Scripting Guide:&lt;BR /&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/repeat-function.shtml#ww270242" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/18.0/#page/jmp/repeat-function.shtml#ww270242&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1729246548568.png" style="width: 744px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69287iC860BC42B682CF7B/image-dimensions/744x228?v=v2" width="744" height="228" role="button" title="hogi_1-1729246548568.png" alt="hogi_1-1729246548568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I fear a LLM will have its difficulties with such cool hidden features ...&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 19:43:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806737#M98527</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-19T19:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807005#M98576</link>
      <description>&lt;P&gt;I'm not really sure if there is anything hidden about Repeat()? Of course, you have to know about it, but you will come across it fairly quickly in scripting index. But you might need a bit of luck as the function group which it belongs to is Character and not &lt;STRONG&gt;Character, Matrix and List&lt;/STRONG&gt; which it should be but it isn't the only one like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also go with a bit more "normal" route where replace all values in a list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

l = As List(J(1000, 1, .));

l[1::N Items(l)] = "A";

show(l);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 06:29:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807005#M98576</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-19T06:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807024#M98577</link>
      <description>&lt;P&gt;It's easy to find &lt;FONT face="courier new,courier"&gt;Repeat&lt;/FONT&gt;, but it's more difficult to find and understand the correct syntax to generate the list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1729320765729.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69334iDDE22B0AC61A91BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1729320765729.png" alt="hogi_1-1729320765729.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1729320842146.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69336i4483BEE7A50618F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1729320842146.png" alt="hogi_3-1729320842146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1729320706687.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69333iE5FDAD4FC472A25E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1729320706687.png" alt="hogi_0-1729320706687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 08:17:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807024#M98577</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-20T08:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807042#M98582</link>
      <description>&lt;P&gt;Both scripting index and Scripting Guide provide an example for that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1729343016746.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69337i5113B1E11AAF3565/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1729343016746.png" alt="jthi_0-1729343016746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1729343030636.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69338i88156BB544E7EA13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1729343030636.png" alt="jthi_1-1729343030636.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Function description also tells quite accurately what Repeat() does but it does require some extra understanding on how concatenation of lists in JMP works. Luckily &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww2485888" target="_blank" rel="noopener"&gt;JSL Syntax Reference&lt;/A&gt; at least offers link to &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/repeat-function.shtml#ww270242" target="_blank" rel="noopener"&gt;Scripting Guide&lt;/A&gt; which has much better documentation of the function&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1729343070562.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69339i44E9573124A384EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1729343070562.png" alt="jthi_2-1729343070562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also one more method is to use Substitute (Repeat() is what I would use in simple case like this)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

l = Substitute(As List(J(1000, 1, 1)), 1, "A");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Oct 2024 13:13:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807042#M98582</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-19T13:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807059#M98586</link>
      <description>&lt;P&gt;Yes, see&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806737/highlight/true#M98527" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/806737/highlight/true#M98527&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I agree, it's very well described in the &lt;STRONG&gt;Scripting Guide&lt;/STRONG&gt;. Interesting that the LLM did not find / use (?)&amp;nbsp; this information.&lt;BR /&gt;&lt;BR /&gt;From the &lt;STRONG&gt;Scripting Index&lt;/STRONG&gt; and the &lt;STRONG&gt;JSL syntax reference&lt;/STRONG&gt; it's not possible to get this detail.&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;Scripting Index: ...&amp;nbsp;&lt;/STRONG&gt;without executing the code - and interpreting the result].&lt;/P&gt;&lt;P&gt;Some comments / details will help the users - and the LLM.&lt;BR /&gt;&lt;BR /&gt;Once the documentation can be found and understood by a LLM, JSL coding will be like heaven : )&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 19:55:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807059#M98586</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-19T19:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: List of Strings</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807101#M98593</link>
      <description>&lt;P&gt;Scripting Index and JSL Syntax reference both do contain this information?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Scripting Index
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Returns the text, matrix, or &lt;STRONG&gt;list specified by the x argument concatenated with itself n times&lt;/STRONG&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;JSL Syntax Reference
&lt;UL&gt;
&lt;LI&gt;Returns a copy of &lt;EM&gt;source&lt;/EM&gt; &lt;STRONG&gt;concatenated with itself&lt;/STRONG&gt; &lt;EM&gt;a&lt;/EM&gt; times&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You might have to read it a bit in reverse, as you might not (initially) consider your input as a list but your output is. You also might have to take a look into list concatenation&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.1/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww4551738" target="_blank"&gt;Character Functions (jmp.com)&lt;/A&gt;&amp;nbsp;(once again should be also found under list and matrix)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also one more option for simple cases is to utilize Repeat with a string and then use Words to break it into a list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

l = Words(Repeat("A", 1000), "");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 06:44:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Strings/m-p/807101#M98593</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-21T06:44:29Z</dc:date>
    </item>
  </channel>
</rss>

