aboutsummaryrefslogtreecommitdiff
path: root/docs/doc/reverse.html
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-12-30 10:53:21 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-12-30 10:53:21 -0500
commit2f4f1d38f0aec449c39a15cdaaa5e160b4a78a4e (patch)
tree1b393f87e99d5d67307cde93306e5721184c1958 /docs/doc/reverse.html
parenta1fb609dd33aa604020350ecbb90b9b5f26dec61 (diff)
Updated error message
Diffstat (limited to 'docs/doc/reverse.html')
-rw-r--r--docs/doc/reverse.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/doc/reverse.html b/docs/doc/reverse.html
index 4d594095..3cc1f829 100644
--- a/docs/doc/reverse.html
+++ b/docs/doc/reverse.html
@@ -91,7 +91,7 @@
</pre>
<p>Rotate also allows <code><span class='Value'>𝕨</span></code> to be a list (or unit array) of integers, in which case they're matched with <a href="leading.html">leading axes</a> of <code><span class='Value'>𝕩</span></code>. This means the length of <code><span class='Value'>𝕨</span></code> can't be larger than the rank of <code><span class='Value'>𝕩</span></code>, or there wouldn't be enough axes to match. This rule that <code><span class='Value'>𝕩</span></code> has to have rank one or more when <code><span class='Value'>𝕨</span></code> is an atom is a special case, because then <code><span class='Value'>𝕨</span></code> is treated as the one-element list <code><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=M+KAvzTigL8yIOKMvSAianVzdCBhIGxpc3Qi">↗️</a><pre> <span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>4</span><span class='Ligature'>‿</span><span class='Number'>2</span> <span class='Function'>⌽</span> <span class='String'>&quot;just a list&quot;</span>
-<span class='Error'>Error: 𝕨⌽𝕩: Length of compound 𝕨 must be at most rank of 𝕩</span>
+<span class='Error'>Error: ⌽: Length of list 𝕨 must be at most rank of 𝕩 (3 ≡ ≠𝕨, ⟨11⟩ ≡ ≢𝕩⟩</span>
</pre>
<p>The expression below rotates the first (vertical) axis of <code><span class='Value'>tab</span></code> by one element, and second by two. So the line of capital letters goes from being one away from the top, up to the top, and the column with <code><span class='String'>'2'</span></code> goes from horizontal index 2 to index 0.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oqiIHRhYiDihpAgM+KAvzTipYoiYWJjZEFCQ0QwMTIzIgox4oC/MiDijL0gdGFi">↗️</a><pre> <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span> <span class='Function'>⌽</span> <span class='Value'>tab</span>