aboutsummaryrefslogtreecommitdiff
path: root/doc/syntax.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-07-23 22:49:20 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-07-23 22:49:20 -0400
commita717221a7dd2fb88ff9d5d07e221a83dc558b47d (patch)
tree0b3ceb6ca130ea5f9dccd706ddb72368a71bd924 /doc/syntax.md
parent4cc1cb8d7b34eb99d77fd35a53797e6929b348f7 (diff)
Update list notation links
Diffstat (limited to 'doc/syntax.md')
-rw-r--r--doc/syntax.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/syntax.md b/doc/syntax.md
index 61ea0114..76489695 100644
--- a/doc/syntax.md
+++ b/doc/syntax.md
@@ -72,7 +72,7 @@ BQN's built-in operations also have patterns to indicate the syntactic role: 1-m
### Assignment
-Another element that can be included in expressions is assignment, which is written with `←` to *define* (also called "declare" in many other languages) a variable and `↩` to *change* its definition. A variable can only be defined once within a scope, and can only be changed if it has already been defined. However, it can be shadowed, meaning that it is defined again in an inner scope even though it has a definition in an outer scope already.
+Another element that can be included in expressions is assignment, which is written with `←` to *define* (also called "declare" in many other languages) a variable and `↩` to *change* its definition. A variable can only be defined once within a [scope](lexical.md), and can only be changed if it has already been defined. However, it can be shadowed, meaning that it is defined again in an inner scope even though it has a definition in an outer scope already.
x←1 ⋄ {x←2 ⋄ x↩3 ⋄ x}
x
@@ -103,6 +103,8 @@ The characters `⋄` and `,` and newline are completely interchangeable and are
### List notation
+*[Full documentation](arrayrepr.md#list-literals)*
+
Lists (1-dimensional arrays) are enclosed in angle brackets `⟨⟩`, with the results of the expressions in between being the list's elements. Lists of two elements or more can also be written with the ligature character `‿`. This character has higher binding strength than any part of an expression. If one of the elements is a compound expression, then it will need to be enclosed in parentheses.
### Blocks