diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-06-13 13:20:34 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-06-13 13:20:34 -0400 |
| commit | 0d6c26b9aa607ff14e14e6488bace207e324022a (patch) | |
| tree | 08c8900cc47d2b3aafa41dc37f96b36452584829 /docs/tutorial/variable.html | |
| parent | dcbb72306821e0856c32944a54ea93902ef2949f (diff) | |
Highlight [] as list brackets, like ⟨⟩
Diffstat (limited to 'docs/tutorial/variable.html')
| -rw-r--r-- | docs/tutorial/variable.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/variable.html b/docs/tutorial/variable.html index df0d7c74..1bb916ac 100644 --- a/docs/tutorial/variable.html +++ b/docs/tutorial/variable.html @@ -223,7 +223,7 @@ <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=OOKMvuKKkSAiQlFOIiAgICAgICAgIyBDaGFuZ2UgdGhlIGZpcnN0IGVsZW1lbnQgdG8gOA==">↗️</a><pre> <span class='Number'>8</span><span class='Modifier2'>⌾</span><span class='Function'>⊑</span> <span class='String'>"BQN"</span> <span class='Comment'># Change the first element to 8 </span>⟨ 8 'Q' 'N' ⟩ </pre> -<p>BQN doesn't have a dedicated syntax such as <code><span class='Value'>list[index]</span></code> to select from a list, because a function is more consistent with the rest of BQN's notation and can be manipulated more easily. This decision has already been useful to us, because Under's right operand is a function! With a special notation we'd have to first "package" index selection into a function to use it.</p> +<p>BQN doesn't have a dedicated syntax such as <code><span class='Value'>list</span><span class='Bracket'>[</span><span class='Value'>index</span><span class='Bracket'>]</span></code> to select from a list, because a function is more consistent with the rest of BQN's notation and can be manipulated more easily. This decision has already been useful to us, because Under's right operand is a function! With a special notation we'd have to first "package" index selection into a function to use it.</p> <table class='primitives'> <tr> <td><span class='Function'>↑</span></td> |
