Syntax
print(X)
Arguments
X is arbitrary data.
Details
Print out results and variable contents.
Examples
x=rand(10000,10);
print x;
// output: [9786,9501,8116,1266,1719,789,8162,3113,2740,6323]
The output format of a dictionary is "key -> value". The order of the keys is
determined by the ordered parameter specified when the dictionary is
created.
x=1 6 3
y=4.5 7.8 4.3
// The dictionaries are unordered if the ordered parameter is not specified.
z=dict(x,y);
// Unordered dictionaries do not retain the input order when output.
print(z)
/* output:
3->4.3
6->7.8
1->4.5
*/
// The dictionaries are ordered if ordered=true is specified.
z1=dict(x,y,true)
// Ordered dictionaries retain the input order of key-value pairs when output.
print(z1)
/* output:
1->4.5
6->7.8
3->4.3
*/