aboutsummaryrefslogtreecommitdiff
path: root/tutorial/expression.md
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/expression.md')
-rw-r--r--tutorial/expression.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/tutorial/expression.md b/tutorial/expression.md
index 4c2b79b1..813e751f 100644
--- a/tutorial/expression.md
+++ b/tutorial/expression.md
@@ -193,6 +193,8 @@ Made it to the last role, the 2-modifier (if you think something's been skipped,
<!--GEN
Primitives ⟨"∘%j%Atop"⟩
-->
+For example, the first expression `3 ט∘+ 4` expands to `ט 3 + 4`. Summing up, we get `ט 7`, which from the previous section is `7 × 7`, or `49`.
+
It's past time we covered how the syntax for modifiers works. Remember how I told you you hated learning the order of operations? No? Good. Modifiers bind more tightly than functions, so they are called on their operands before those operands can be used as arguments. As the parentheses above suggest, modifiers associate from left to right, the opposite order as functions. For example, the first expression above is evaluated in the order shown below. First we construct the square function `ט`, then compose it with `+`, and finally apply the result to some arguments.
<!--GEN