mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
tidied up example so it is easier to read
This commit is contained in:
parent
0428d0cf80
commit
356e2cf096
@ -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!"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user