tidied up example so it is easier to read

This commit is contained in:
H.D. Sarson 2016-11-08 14:40:20 +00:00
parent 0428d0cf80
commit 356e2cf096

View File

@ -399,10 +399,9 @@ parser.eval('"hello"'); // String, "hello"
// string manipulation
parser.eval('a = concat("hello", " world")'); // String, "hello world"
parser.eval('size(a)'); // Matrix size [1], [11]
parser.eval('size(a)'); // Matrix [11]
parser.eval('a[1:5]'); // String, "hello"
parser.eval('a[1] = "H"'); // String, "H"
parser.eval('a'); // String, "Hello world"
parser.eval('a[7:12] = "there!"'); // String, "there!"
parser.eval('a'); // String, "Hello there!"