docuemntation: + also concatenates lists

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1009 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-06-28 15:03:27 +00:00
parent c0d114c4a2
commit 737dc6f15e
+2 -1
View File
@@ -15,9 +15,10 @@ MSE script supports most basic mathamatical operators:
| @-a@ @-(3 + 2) == -5@ Negate a number (make it negative if positive and vice versa) | @-a@ @-(3 + 2) == -5@ Negate a number (make it negative if positive and vice versa)
===The + operator=== ===The + operator===
The @+@ operator has three functions The @+@ operator has four functions
* It adds [[type:int]]s (also [[type:double]]s), @1+1 == 2@ * It adds [[type:int]]s (also [[type:double]]s), @1+1 == 2@
* It concatenates strings, @"1" + "1" == "11"@ * It concatenates strings, @"1" + "1" == "11"@
* It concatenates lists, @[1] + [1] == [1,1]@
* It composes [[type:function]]s @(f + g) () == g( input: f() )@ * It composes [[type:function]]s @(f + g) () == g( input: f() )@
--Comparison-- --Comparison--