Added scalar addition

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 6ed037a9f6
commit 578f2c27f9
5 changed files with 181 additions and 15 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
Add behaves differently according to the type of the LHS:
- arrays: concatenate
- number scalars: arithmetic addition (soon)
- string scalars: concatenate (soon)
- number scalars: arithmetic addition
- string scalars: concatenate
Use `+=` as append assign for things like increment. `.a += .x` is equivalent to running `.a |= . + .x`.
Use `+=` as append assign for things like increment. Note that `.a += .x` is equivalent to running `.a = .a + .x`.