aboutsummaryrefslogtreecommitdiff
path: root/docs/help/shiftafter.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/help/shiftafter.html')
-rw-r--r--docs/help/shiftafter.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/help/shiftafter.html b/docs/help/shiftafter.html
new file mode 100644
index 00000000..0254594a
--- /dev/null
+++ b/docs/help/shiftafter.html
@@ -0,0 +1,36 @@
+<head>
+ <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
+ <link href="../style.css" rel="stylesheet"/>
+ <title>BQN: Right Pointing Double Angle Quotation (`»`)</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="right-pointing-double-angle-quotation-"><a class="header" href="#right-pointing-double-angle-quotation-">Right Pointing Double Angle Quotation (<code><span class='Function'>»</span></code>)</a></h1>
+<h2 id="--shift-after"><a class="header" href="#--shift-after"><code><span class='Function'>»</span> <span class='Value'>𝕩</span></code>: Shift After</a></h2>
+<p>Remove the last element of <code><span class='Value'>𝕩</span></code>, add a cell of fill values to the start of the first axis of <code><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=ICAgwrsgMeKAvzLigL8zCgogICDCuyAz4oC/MyDipYogOQ==">↗️</a><pre> <span class='Function'>»</span> <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span>
+⟨ 0 1 2 ⟩
+
+ <span class='Function'>»</span> <span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>3</span> <span class='Function'>⥊</span> <span class='Number'>9</span>
+┌─
+╵ 0 0 0
+ 9 9 9
+ 9 9 9
+ ┘
+</pre>
+<h2 id="---shift-after"><a class="header" href="#---shift-after"><code><span class='Value'>𝕨</span> <span class='Function'>»</span> <span class='Value'>𝕩</span></code>: Shift After</a></h2>
+<p>Remove the last <code><span class='Function'>≠</span><span class='Value'>𝕨</span></code> (length) major cells from <code><span class='Value'>𝕩</span></code>, join <code><span class='Value'>𝕨</span></code> to the start of <code><span class='Value'>𝕩</span></code>. Ranks must match.</p>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgNzggwrsgMeKAvzLigL8zCgogICAx4oC/MiDCuyAx4oC/MuKAvzMKCiAgIGEg4oaQIDPigL8zIOKliiA5CgogICAx4oC/MuKAvzMgwrsgYQ==">↗️</a><pre> <span class='Number'>78</span> <span class='Function'>»</span> <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span>
+⟨ 78 1 2 ⟩
+
+ <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span> <span class='Function'>»</span> <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span>
+⟨ 1 2 1 ⟩
+
+ <span class='Value'>a</span> <span class='Gets'>←</span> <span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>3</span> <span class='Function'>⥊</span> <span class='Number'>9</span>
+
+ <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span> <span class='Function'>»</span> <span class='Value'>a</span>
+┌─
+╵ 1 2 3
+ 9 9 9
+ 9 9 9
+ ┘
+</pre>