aboutsummaryrefslogtreecommitdiff
path: root/docs/help/merge_greaterthan.html
blob: c475c8c9c5be21045e2ac307e0d9a8d5cf201d18 (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
30
31
32
33
34
35
36
37
<head>
  <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
  <link href="../style.css" rel="stylesheet"/>
  <title>BQN: Greater Than (`>`)</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="greater-than-"><a class="header" href="#greater-than-">Greater Than (<code><span class='Function'>&gt;</span></code>)</a></h1>
<h2 id="--merge--"><a class="header" href="#--merge--"><code><span class='Function'>&gt;</span> <span class='Value'>𝕩</span></code>: Merge</a></h2>
<p>Add the rank of an element of <code><span class='Value'>𝕩</span></code> to the rank of <code><span class='Value'>𝕩</span></code>.</p>
<p>All elements must have the same rank.</p>
<p>Returns atomic values as is.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICBhIOKGkCDin6jin6gxLCAy4p+pLCDin6gzLCA04p+p4p+pCgogID5hCgogIOKJomEKCiAg4omiPmE=">↗️</a><pre>      <span class='Value'>a</span> <span class='Gets'></span> <span class='Bracket'>⟨⟨</span><span class='Number'>1</span><span class='Separator'>,</span> <span class='Number'>2</span><span class='Bracket'></span><span class='Separator'>,</span> <span class='Bracket'></span><span class='Number'>3</span><span class='Separator'>,</span> <span class='Number'>4</span><span class='Bracket'>⟩⟩</span>

      <span class='Function'>&gt;</span><span class='Value'>a</span>
┌─     
╵ 1 2  
  3 4  
      ┘

      <span class='Function'></span><span class='Value'>a</span>
⟨ 2 ⟩

      <span class='Function'>&gt;</span><span class='Value'>a</span>
⟨ 2 2 ⟩
</pre>
<h2 id="---greater-than"><a class="header" href="#---greater-than"><code><span class='Value'>𝕨</span> <span class='Function'>&gt;</span> <span class='Value'>𝕩</span></code>: Greater Than</a></h2>
<p><code><span class='Value'>𝕨</span></code> and <code><span class='Value'>𝕩</span></code> can both be either numbers or characters.</p>
<p><a href="../doc/arithmetic.html#pervasion">Pervasive.</a></p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAxID4gMwoKICAy4oC/M+KAvzAgPiAz4oC/MeKAvzAKCiAgJ2EnID4gJ2In">↗️</a><pre>      <span class='Number'>1</span> <span class='Function'>&gt;</span> <span class='Number'>3</span>
0

      <span class='Number'>2</span><span class='Ligature'></span><span class='Number'>3</span><span class='Ligature'></span><span class='Number'>0</span> <span class='Function'>&gt;</span> <span class='Number'>3</span><span class='Ligature'></span><span class='Number'>1</span><span class='Ligature'></span><span class='Number'>0</span>
⟨ 0 1 0 ⟩

      <span class='String'>'a'</span> <span class='Function'>&gt;</span> <span class='String'>'b'</span>
0
</pre>