Commit 010c6127 authored by twanvl's avatar twanvl

docuemntation: + also concatenates lists

parent fcb1bb84
...@@ -15,9 +15,10 @@ MSE script supports most basic mathamatical operators: ...@@ -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--
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment