aboutsummaryrefslogtreecommitdiff
path: root/tutorial/expression.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-04-23 10:44:28 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-04-23 10:44:28 -0400
commitb08a79d7f0108b2e587bb348f13635329549eaf0 (patch)
tree2aadc9d09724951a3ba776aec49269a4bf5c8edc /tutorial/expression.md
parentd9017928786dc30cc58f2610c7e76bd279e6eaf8 (diff)
Explain ¯ in the first tutorial (fixes #65)
Diffstat (limited to 'tutorial/expression.md')
-rw-r--r--tutorial/expression.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/expression.md b/tutorial/expression.md
index 152c723a..840b6086 100644
--- a/tutorial/expression.md
+++ b/tutorial/expression.md
@@ -13,11 +13,11 @@ In the code blocks shown here, input is highlighted and indented, while output i
- 1.5
<!--GEN prim.bqn
-Primitives ⟨"+%%%Add", "-%%Negate%Subtract"⟩
+Primitives ⟨"+%%%Add", "-%%Negate%Subtract", "¯%9%Negative"⟩
-->
Shown above are a few arithmetic operations. BQN manages to pass as a normal programming language for three lines so far. That's a big accomplishment for BQN! Earth's a confusing place!
-The number of spaces between *primitive functions* like `+` and `-` and their *arguments* doesn't matter: you can use as much or as little as you like. No spaces inside numbers, of course.
+The number of spaces between *primitive functions* like `+` and `-` and their *arguments* doesn't matter: you can use as much or as little as you like. No spaces inside numbers, of course. On that note, there's a special minus sign `¯` for use as part of a number, which you can see in the output `¯1.5` above (since `-1.5` consists of a function and a number it's often less convenient to use).
2 × π
9 ÷ 2