blob: 58c60486d1dca850496e7ec41a56e7cb7cbab203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<head>
<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../style.css" rel="stylesheet"/>
<title>BQN: Mathematical Double-struck W (๐จ)</title>
</head>
<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div>
<h1 id="mathematical-double-struck-w-๐จ"><a class="header" href="#mathematical-double-struck-w-๐จ">Mathematical Double-struck W (<code><span class='Value'>๐จ</span></code>)</a></h1>
<h2 id="๐จ-left-argument"><a class="header" href="#๐จ-left-argument"><code><span class='Value'>๐จ</span></code>: Left Argument</a></h2>
<p><a class="fulldoc" href="../doc/syntax.html#blocks">โfull documentation</a></p>
<p>A variable assigned to the left argument of a block. <code><span class='Function'>๐</span></code> can be used to access the left argument as a function.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=NSB78J2VqH0gMQoKLeKAv8O3IHvwnZWO8J2VqX3CqCA0">โ๏ธ</a><pre> <span class='Number'>5</span> <span class='Brace'>{</span><span class='Value'>๐จ</span><span class='Brace'>}</span> <span class='Number'>1</span>
5
<span class='Function'>-</span><span class='Ligature'>โฟ</span><span class='Function'>รท</span> <span class='Brace'>{</span><span class='Function'>๐</span><span class='Value'>๐ฉ</span><span class='Brace'>}</span><span class='Modifier'>ยจ</span> <span class='Number'>4</span>
โจ ยฏ4 0.25 โฉ
</pre>
<p>In a call with no left argument, <code><span class='Value'>๐จ</span></code> functions as <a href="nothing.html">Nothing</a> and <code><span class='Function'>๐</span></code> can't be used.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=eygt8J2VqCnii4jwnZWpfSA2CgoyIHsoLfCdlagp4ouI8J2VqX0gNg==">โ๏ธ</a><pre> <span class='Brace'>{</span><span class='Paren'>(</span><span class='Function'>-</span><span class='Value'>๐จ</span><span class='Paren'>)</span><span class='Function'>โ</span><span class='Value'>๐ฉ</span><span class='Brace'>}</span> <span class='Number'>6</span>
โจ 6 โฉ
<span class='Number'>2</span> <span class='Brace'>{</span><span class='Paren'>(</span><span class='Function'>-</span><span class='Value'>๐จ</span><span class='Paren'>)</span><span class='Function'>โ</span><span class='Value'>๐ฉ</span><span class='Brace'>}</span> <span class='Number'>6</span>
โจ ยฏ2 6 โฉ
</pre>
|