☐ cool new feature
☐ could help many users!
☐ removes a „bug“
☑ nice to have
☐ nobody needs it
In Mathematica, one can use "%" as a placeholder for the last returned value.
Could you please implement something similar in JSL?
Could help during debugging:
Run single lines of the original code, add some test code
important: don't mess up the original code lines,
but instead: get access to the return values via the placeholder .
Aditional benefit: work gets focused on "forward direction":
Ah, there is some returned value, how to continue and get most out of it ...
instead of
How do I have to change the previous code to get access to the returned value.
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Graph Builder(
Size( 437, 413 ),
Graph Spacing( 4 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
// during debugging:
gb = %;(gb << XPath( "//AxisBox" )) << select;// or even better:
gb << get XML();
New Window("xml", %)
https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568699
more wishes submitted by