From a717221a7dd2fb88ff9d5d07e221a83dc558b47d Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 23 Jul 2021 22:49:20 -0400 Subject: Update list notation links --- doc/syntax.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/syntax.md') 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 -- cgit v1.2.3