aboutsummaryrefslogtreecommitdiff
path: root/docs/help/rank.html
blob: ff2d224a277f1450b88d4f4ddc1a35bad8a3ede8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<head>
  <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
  <link href="../style.css" rel="stylesheet"/>
  <title>BQN: Circled Horizontal Bar With Notch (โމ)</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="circled-horizontal-bar-with-notch-"><a class="header" href="#circled-horizontal-bar-with-notch-">Circled Horizontal Bar With Notch (<code><span class='Modifier2'>โމ</span></code>)</a></h1>
<h2 id="๐”ฝ๐•˜-๐•ฉ-๐•จ-๐”ฝ๐•˜-๐•ฉ-rank"><a class="header" href="#๐”ฝ๐•˜-๐•ฉ-๐•จ-๐”ฝ๐•˜-๐•ฉ-rank"><code><span class='Function'>๐”ฝ</span><span class='Modifier2'>โމ</span><span class='Value'>๐•˜</span> <span class='Value'>๐•ฉ</span></code>, <code><span class='Value'>๐•จ</span> <span class='Function'>๐”ฝ</span><span class='Modifier2'>โމ</span><span class='Value'>๐•˜</span> <span class='Value'>๐•ฉ</span></code>: Rank</a></h2>
<p>Apply <code><span class='Function'>๐”ฝ</span></code> to cells at ranks given in <code><span class='Value'>๐•˜</span></code>. Non-negative numbers indicate the rank of the cell and negative ones indicate the difference from full rank.</p>
<p>The ranks applied are given by the following:</p>
<ul>
<li><code><span class='Modifier2'>โމ</span> <span class='Value'>c</span></code>     Rank-c cells of <code><span class='Value'>๐•ฉ</span></code> (monadic) or both arguments (dyadic)</li>
<li><code><span class='Modifier2'>โމ</span> <span class='Value'>b</span><span class='Ligature'>โ€ฟ</span><span class='Value'>c</span></code>   Rank-b cells of <code><span class='Value'>๐•จ</span></code> and rank-c cells of <code><span class='Value'>๐•ฉ</span></code> (dyadic)</li>
<li><code><span class='Modifier2'>โމ</span> <span class='Value'>a</span><span class='Ligature'>โ€ฟ</span><span class='Value'>b</span><span class='Ligature'>โ€ฟ</span><span class='Value'>c</span></code> Rank-a cells of <code><span class='Value'>๐•ฉ</span></code> (monadic), b-cells of <code><span class='Value'>๐•จ</span></code> and c-cells of <code><span class='Value'>๐•ฉ</span></code> (dyadic)</li>
</ul>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=YSDihpAgM+KAvzLigL804qWKIkFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaIgoK4oy94o6JMiBh">โ†—๏ธ</a><pre>    <span class='Value'>a</span> <span class='Gets'>โ†</span> <span class='Number'>3</span><span class='Ligature'>โ€ฟ</span><span class='Number'>2</span><span class='Ligature'>โ€ฟ</span><span class='Number'>4</span><span class='Function'>โฅŠ</span><span class='String'>&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;</span>

    <span class='Function'>โŒฝ</span><span class='Modifier2'>โމ</span><span class='Number'>2</span> <span class='Value'>a</span>
โ”Œโ”€      
โ•Ž"EFGH  
  ABCD  
        
 ยทMNOP  
  IJKL  
        
 ยทUVWX  
  QRST" 
       โ”˜
</pre>