aboutsummaryrefslogtreecommitdiff
path: root/docs/help/self_swap.html
blob: 3cf268019708dd3096ecc4b56ce53a9e7897872a (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: Small Tilde (˜)</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="small-tilde-"><a class="header" href="#small-tilde-">Small Tilde (<code><span class='Modifier'>˜</span></code>)</a></h1>
<h2 id="𝔽-𝕩-self"><a class="header" href="#𝔽-𝕩-self"><code><span class='Function'>𝔽</span><span class='Modifier'>˜</span> <span class='Value'>𝕩</span></code>: Self</a></h2>
<p>Supplies <code><span class='Value'>𝕩</span></code> as a left argument to <code><span class='Function'>𝔽</span></code> (<code><span class='Value'>𝕩</span> <span class='Function'>𝔽</span> <span class='Value'>𝕩</span></code>).</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=MSArIDEKCivLnCAx">↗️</a><pre>    <span class='Number'>1</span> <span class='Function'>+</span> <span class='Number'>1</span>
2

    <span class='Function'>+</span><span class='Modifier'>˜</span> <span class='Number'>1</span>
2
</pre>
<h2 id="𝕨-𝔽-𝕩-swap"><a class="header" href="#𝕨-𝔽-𝕩-swap"><code><span class='Value'>𝕨</span> <span class='Function'>𝔽</span><span class='Modifier'>˜</span> <span class='Value'>𝕩</span></code>: Swap</a></h2>
<p>Swaps the arguments of <code><span class='Function'>𝔽</span></code> (<code><span class='Value'>𝕩</span> <span class='Function'>𝔽</span> <span class='Value'>𝕨</span></code>).</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=MSAtIDIKCjEgLcucIDI=">↗️</a><pre>    <span class='Number'>1</span> <span class='Function'>-</span> <span class='Number'>2</span>
¯1

    <span class='Number'>1</span> <span class='Function'>-</span><span class='Modifier'>˜</span> <span class='Number'>2</span>
1
</pre>