Skip to content

Commit 3b033aa

Browse files
committed
Less ambiguous wording (fixes #106)
1 parent 0b90ed7 commit 3b033aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/tutorial/expression.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ <h2 id="modifiers"><a class="header" href="#modifiers">Modifiers</a></h2>
341341
<p>With three examples you may have noticed that 1-modifiers tend to cluster at the top of the line. In fact, every primitive 1-modifer is a superscript character: we've covered <code><span class='Modifier'>˜⁼˙</span></code>, and the remaining array-based modifiers <code><span class='Modifier'>˘¨⌜´˝`</span></code> will show up later.</p>
342342
<h2 id="2-modifiers"><a class="header" href="#2-modifiers">2-modifiers</a></h2>
343343
<p>Made it to the last role, the 2-modifier (if you think something's been skipped, you're free to call subjects 0-modifiers. They don't modify anything. Just not when other people can hear you). To introduce them we'll use Atop (<code><span class='Modifier2'></span></code>), which composes two functions as in mathematics. The resulting function allows one or two arguments like any BQN function: these are all passed to the function on the right, and the result of that application is passed to the function on the left. So the function on the left is only ever called with one argument.</p>
344-
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=MyDDl8uc4oiYKyA0ICAjIFNxdWFyZSBvZiAzIHBsdXMgNAot4oiYKMOXy5wpIDUgICMgTmVnYXRpdmUgc3F1YXJlIG9mIDU=">↗️</a><pre> <span class='Number'>3</span> <span class='Function'>×</span><span class='Modifier'>˜</span><span class='Modifier2'></span><span class='Function'>+</span> <span class='Number'>4</span> <span class='Comment'># Square of 3 plus 4
344+
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=MyDDl8uc4oiYKyA0ICAjIFNxdWFyZSBvZiB0aGUgc3VtIG9mIDMgYW5kIDQKLeKImCjDl8ucKSA1ICAjIE5lZ2F0aXZlIHNxdWFyZSBvZiA1">↗️</a><pre> <span class='Number'>3</span> <span class='Function'>×</span><span class='Modifier'>˜</span><span class='Modifier2'></span><span class='Function'>+</span> <span class='Number'>4</span> <span class='Comment'># Square of the sum of 3 and 4
345345
</span>49
346346
<span class='Function'>-</span><span class='Modifier2'></span><span class='Paren'>(</span><span class='Function'>×</span><span class='Modifier'>˜</span><span class='Paren'>)</span> <span class='Number'>5</span> <span class='Comment'># Negative square of 5
347347
</span>¯25

tutorial/expression.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ With three examples you may have noticed that 1-modifiers tend to cluster at the
188188

189189
Made it to the last role, the 2-modifier (if you think something's been skipped, you're free to call subjects 0-modifiers. They don't modify anything. Just not when other people can hear you). To introduce them we'll use Atop (``), which composes two functions as in mathematics. The resulting function allows one or two arguments like any BQN function: these are all passed to the function on the right, and the result of that application is passed to the function on the left. So the function on the left is only ever called with one argument.
190190

191-
3 ט∘+ 4 # Square of 3 plus 4
191+
3 ט∘+ 4 # Square of the sum of 3 and 4
192192
-∘(ט) 5 # Negative square of 5
193193

194194
<!--GEN

0 commit comments

Comments
 (0)