<?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: Does Head evaluate it's argument? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/903167#M106213</link>
    <description>&lt;P&gt;Another question:&lt;BR /&gt;&lt;BR /&gt;Why does Type evaluate its argument?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Type(Char(1)) // String !!&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Sep 2025 21:47:37 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-09-23T21:47:37Z</dc:date>
    <item>
      <title>Does Head evaluate its argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/729500#M91198</link>
      <description>&lt;P&gt;From&amp;nbsp;&lt;LI-MESSAGE title="Using JSL to Develop Efficient, Robust Applications (EU 2018 415)" uid="51456" url="https://community.jmp.com/t5/Discovery-Summit-Europe-2018/Using-JSL-to-Develop-Efficient-Robust-Applications-EU-2018-415/m-p/51456#U51456" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;, I learned that there are some functions which evaluate their argument and others which don't:&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-1709477067669.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61763iB5B83E989A1789BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1709477067669.png" alt="hogi_0-1709477067669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wondered about Head. Here everything looks logic ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;f= Expr(x=2);
Substitute(NameExpr(f),Expr(x), Expr(y));
Head(f);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Head is not like Substitute, I can directly use the function name as an argument&amp;nbsp; - and Head returns the head of the expression: &lt;FONT face="courier new,courier"&gt;Assign()&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After checking some other functions which "don't evaluate their argument":&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr(x=2); // x=2
Name Expr(x=2);&amp;nbsp;//&amp;nbsp;x=2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;let's check the result for&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Head(x=2)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which is "2" - i.e. the result after evaluating the argument?!?! why is it not &lt;FONT face="courier new,courier"&gt;assign()&lt;/FONT&gt;?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 16:47:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/729500#M91198</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-03T16:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/729548#M91202</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1709482989532.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61770iCB2F220D29E51E55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1709482989532.png" alt="jthi_0-1709482989532.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
{a, b, c} = {1, 2, 3};

Head(Expr(Sum(a, b, c)));
HeadExpr(Sum(a, b, c)); // Deprecated

Head(Sum(a, b, c));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/advanced-expressions-macros-and-lists.shtml#" target="_blank"&gt;https://www.jmp.com/support/help/en/17.2/#page/jmp/advanced-expressions-macros-and-lists.shtml#&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1709483106946.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61771i5C991F39D27A9754/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_1-1709483106946.png" alt="jthi_1-1709483106946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 16:31:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/729548#M91202</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-03T16:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/729550#M91203</link>
      <description>&lt;P&gt;ah, ok, the scripting index is very clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, it could make scripting a lot easier if the JSL editor used some highlighting to distinguish between arguments that are evaluated and arguments that aren't evaluated before the function is executed:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Advanced syntax highlighting in JSL Editor" uid="729460" url="https://community.jmp.com/t5/JMP-Wish-List/Advanced-syntax-highlighting-in-JSL-Editor/m-p/729460#U729460" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/GraphBuilder-Challenge/m-p/729743/highlight/true#M91235" target="_blank"&gt;more wishes [2024-03]: myWishes.jmp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 10:08:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/729550#M91203</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-08T10:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/747740#M92778</link>
      <description>&lt;P&gt;same for &lt;STRONG&gt;Narg&lt;/STRONG&gt; - the argument gets evaluated (1x, like with &lt;FONT face="courier new,courier"&gt;Name Expr()&lt;/FONT&gt;:(&lt;/img&gt;&lt;BR /&gt;(adapted from the scripting guide)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;aExpr = {a+b,c,d,e+f+g};&lt;BR /&gt;
Show(NArg(aExpr)); //4
Show(NArg(Arg(aExpr,4))); // 3
Show(NArg(Add(1,2,3,4))); // 0
Show(NArg(Expr(Add(1,2,3,4)))); //4

Show(Head(aExpr)); //List()
Show(Head(Arg(aExpr,4))); // Add()
Show(Head(Add(1,2,3,4))); // 10
Show(Head(Expr(Add(1,2,3,4))));&amp;nbsp;//Add&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2024 22:02:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/747740#M92778</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-04-17T22:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/753217#M93506</link>
      <description>&lt;P&gt;this &lt;FONT face="courier new,courier"&gt;Name Expr&lt;/FONT&gt;-like behavior is especially useful for the cases with&lt;BR /&gt;- &lt;FONT face="courier new,courier"&gt;As Column(...)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;- column reference via variable (&lt;FONT face="courier new,courier"&gt;col&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;as an argument.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
col = Name Expr(As Column("age"));

Head(As Column("age"));
Head(col);

dt &amp;lt;&amp;lt; Recode Column(AsColumn("age"),{1},Target Column(AsColumn("age")));
dt &amp;lt;&amp;lt; Recode Column(col,{1},Target Column(col));

dt &amp;lt;&amp;lt; Graph Builder(Variables( X( As Column ("age") ) ),Elements( Points( X ) ));
dt &amp;lt;&amp;lt; Graph Builder(Variables( X( col) ),Elements( Points( X ) ));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the other hand: functions which don't work if a column is entered via &lt;FONT face="courier new,courier"&gt;As Column()&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
col = Name Expr(As Column("age"));
Distribution(Column(As Column("age")));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The easy solution: wrap &lt;FONT face="courier new,courier"&gt;As Column&lt;/FONT&gt; with &lt;FONT face="courier new,courier"&gt;Name Expr&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(Column(Name Expr(As Column("age")))); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... or use Column() instead of As column where applicable:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(Column(Column("age"))); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To distinguish between both cases, you can put a print(1); at the beginning of the argument:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Graph Builder(Variables( X( Print(1);As Column ("age") ) ),Elements( Points( X ) )); // fails

Distribution(Column(Print(1);Column("age"))); // works&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 May 2024 18:50:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/753217#M93506</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-05-09T18:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805187#M98329</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;the argument gets evaluated (1x, like with&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;Name Expr() )&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;sorry:&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;like with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Name Expr()&lt;/FONT&gt;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Head():&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1728739491829.png" style="width: 872px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69063iAB06401D9FF59D53/image-dimensions/872x44?v=v2" width="872" height="44" role="button" title="hogi_1-1728739491829.png" alt="hogi_1-1728739491829.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;means:&amp;nbsp;&amp;nbsp;&lt;EM&gt;"the &lt;/EM&gt;&lt;STRONG&gt;expressionArg&lt;/STRONG&gt;&lt;EM&gt; can be &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1) a name holding an expression - and Head will use the expression,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2) an expression - &lt;U&gt;and Head will evaluate&lt;/U&gt; it and will use the result as input&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;3) or a literal expression quoted by Expr() - and Head will take the literal expression".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Name Expr():&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"the &lt;/EM&gt;&lt;STRONG&gt;expressionArg&lt;/STRONG&gt;&lt;EM&gt; can be &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1) a name holding an expression - and Name Expr will use the expression,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2) an expression - &lt;U&gt;and Name Expr will take the expression&lt;/U&gt;&lt;/EM&gt;&lt;EM&gt;".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Name Expr(1+2); // 1 + 2 
Head(1+2); // 3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 13:51:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805187#M98329</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T13:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805190#M98331</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Argument doesn't get evaluated:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[id=1]&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;list()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;assign()&lt;/FONT&gt; [1st argument]&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;send()&lt;/FONT&gt; [2nd argument]&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 12 Oct 2024 14:50:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805190#M98331</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805192#M98332</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Functions which evaluate their arguments:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ID=2]&lt;BR /&gt;&lt;FONT size="4"&gt;almost all functions ...&lt;BR /&gt;&lt;BR /&gt;most "is ..." functions:&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Is Expr()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Is Matrix()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Is List()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Is Number()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Is Namespace()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Namespace Exists()&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;FONT size="4"&gt;&lt;BR /&gt;good to know:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Equal() (==)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Parse()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Associative Array()&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;FONT size="4"&gt;evaluate arguments &amp;gt; 1st one:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Substitute Into()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Insert Into()&lt;/FONT&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Remove From()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Assign()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Arg()&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 12 Oct 2024 14:46:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805192#M98332</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T14:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805193#M98333</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Functions which behave like &lt;FONT face="courier new,courier"&gt;Name Expr()&lt;/FONT&gt;:&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ID=3]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;expressionArg&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1) a name holding an expression - and Name Expr will use the expression,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2) an expression -&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;and Name Expr will take the expression&lt;/U&gt;&lt;/EM&gt;&lt;EM&gt;".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Name Expr()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;N Arg()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Extract Expr()&amp;nbsp;&lt;/FONT&gt; [both arguments] *)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*) so cool!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x= Expr(Print(1));
Extract Expr(x, x) // Print(1)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 14:51:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805193#M98333</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T14:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805198#M98335</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Other functions like Head()&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[ID=7]&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;expressionArg&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1) a name holding an expression - and Head will use the expression,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2) an expression -&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;and Head will evaluate&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;it and will use the result as input&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;3) or a literal expression quoted by Expr() - and Head will take the literal expression".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Head()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;NArg()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Arg()&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Is Empty()&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Print()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Show()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Write()&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 12 Oct 2024 15:10:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805198#M98335</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805214#M98336</link>
      <description>&lt;P&gt;#ExpressionInspector&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6363175352112w600h540r985" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6363175352112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6363175352112w600h540r985');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6363175352112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 15:10:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/805214#M98336</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Does Head evaluate it's argument?</title>
      <link>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/903167#M106213</link>
      <description>&lt;P&gt;Another question:&lt;BR /&gt;&lt;BR /&gt;Why does Type evaluate its argument?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Type(Char(1)) // String !!&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Sep 2025 21:47:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Does-Head-evaluate-its-argument/m-p/903167#M106213</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T21:47:37Z</dc:date>
    </item>
  </channel>
</rss>

