<?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: Nested Lists in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864206#M102809</link>
    <description>&lt;P&gt;You just need to concatenate the individual lists;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
l1 = {{:A, :B, :C}, {:D, :E, :F}};

l2 = l1[1] || l1[2];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suggest you take the time to read the section of the Scripting Guide on the creation and manipulation of Lists.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 21:34:27 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-04-01T21:34:27Z</dc:date>
    <item>
      <title>Nested Lists</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864195#M102807</link>
      <description>&lt;P&gt;I have somehow generated a nested list of columns due to them having been initially grouped.&amp;nbsp; I would like to remove the nesting to have a continuous list of columns I can act on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of {{:A, :B, :C}, (:D, :E, :F}}, I would like to get to&amp;nbsp;{:A, :B, :C, :D, :E, :F}&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 21:24:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864195#M102807</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-04-01T21:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Lists</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864205#M102808</link>
      <description>&lt;P&gt;Here's one way, assuming the items inside the outer list are all lists.&amp;nbsp; If they might not be, you just need to add a little more code to handle it.&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 );
this_list = {{:A, :B, :C}, {:D, :E, :F}};
new_list = {};
For Each( {v, i}, this_list,
	For Each( {val, idx}, v,
		Insert Into( new_list, val )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Apr 2025 21:32:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864205#M102808</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-04-01T21:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Lists</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864206#M102809</link>
      <description>&lt;P&gt;You just need to concatenate the individual lists;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
l1 = {{:A, :B, :C}, {:D, :E, :F}};

l2 = l1[1] || l1[2];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suggest you take the time to read the section of the Scripting Guide on the creation and manipulation of Lists.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 21:34:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864206#M102809</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-04-01T21:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Lists</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864207#M102810</link>
      <description>&lt;P&gt;Had to tweak this.&amp;nbsp; Works now.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each( {val, idx}, this_list,
		Insert Into( new_list, val )
);	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 22:11:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864207#M102810</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-04-01T22:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Lists</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864715#M102826</link>
      <description>&lt;P&gt;Ah, sorry.&amp;nbsp; I was testing on strings, and I forgot that inserting a list into a list actually inserts the unevaluated items of the list.&amp;nbsp; If you have any columns that are not inside of a nested list, they will be inserted as missing, for example:&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 );
this_list = {{:A, :B, :C}, :D, {:E, :F, :G}};
new_list = {};
For Each( {v, i}, this_list, Insert Into( new_list, v ) );

//{:A, :B, :C, ., :E, :F, :G}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can solve the issue by using Name Expr():&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 );
this_list = {{:A, :B, :C}, :D, {:E, :F, :G}};
new_list = {};
For Each( {v, i}, this_list, Insert Into( new_list, Name Expr( v ) ) );

//{:A, :B, :C, :D, :E, :F, :G}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Apr 2025 12:21:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/864715#M102826</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-04-02T12:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Lists</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/865342#M102856</link>
      <description>&lt;P&gt;Building on Jim's solution.&amp;nbsp; If you have more than two sublists:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
l1 = {{:A, :B, :C}, {:D, :E, :F}, {:G, :H, :I, :J}};
l3 = {};
for (i = 1, i &amp;lt;= nitems(l1), i++,
	insertinto(l3, l1[i]);
);
print(l3);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;{:A, :B, :C, :D, :E, :F, :G, :H, :I, :J}&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:24:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Lists/m-p/865342#M102856</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2025-04-03T15:24:11Z</dc:date>
    </item>
  </channel>
</rss>

