mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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)
|
||||
|
||||
===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 concatenates strings, @"1" + "1" == "11"@
|
||||
* It concatenates lists, @[1] + [1] == [1,1]@
|
||||
* It composes [[type:function]]s @(f + g) () == g( input: f() )@
|
||||
|
||||
--Comparison--
|
||||
|
||||
Reference in New Issue
Block a user