aboutsummaryrefslogtreecommitdiff
path: root/docs/doc/range.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doc/range.html')
-rw-r--r--docs/doc/range.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/doc/range.html b/docs/doc/range.html
index 8d73bf0b..6a8409ac 100644
--- a/docs/doc/range.html
+++ b/docs/doc/range.html
@@ -4,7 +4,7 @@
<title>BQN: Range</title>
</head>
<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">doc</a></div>
-<h1 id="range">Range</h1>
+<h1 id="range"><a class="header" href="#range">Range</a></h1>
<p>Range (<code><span class='Function'>↕</span></code>) is a monadic function that creates arrays of <a href="indices.html">indices</a> (like APL's famous <a href="https://aplwiki.com/wiki/Index_Generator">iota</a> function). Each element in the result is its own index.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oaVIDYKCuKGlSAy4oC/Mw==">↗️</a><pre> <span class='Function'>↕</span> <span class='Number'>6</span>
⟨ 0 1 2 3 4 5 ⟩
@@ -43,7 +43,7 @@
⟨ 3 0 ⟩ ⟨ 3 1 ⟩
</pre>
-<h2 id="number-range">Number range</h2>
+<h2 id="number-range"><a class="header" href="#number-range">Number range</a></h2>
<p>Calling <code><span class='Function'>↕</span></code> on an atom, which must be a natural number, is the more common case. This gives us the list of natural numbers less than <code><span class='Value'>𝕩</span></code> (and starting at <code><span class='Number'>0</span></code>, the first natural number as BQN defines it). You can also get the first <code><span class='Value'>b</span></code> integers starting at <code><span class='Value'>a</span></code> with <code><span class='Value'>a</span><span class='Function'>+↕</span><span class='Value'>b</span></code>, or the natural numbers from <code><span class='Value'>a</span></code> to <code><span class='Value'>b</span></code> with <code><span class='Value'>a</span><span class='Function'>↓↕</span><span class='Value'>b</span></code>.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oaVNAoKNSArIOKGlTQKCjIg4oaTIOKGlTQ=">↗️</a><pre> <span class='Function'>↕</span><span class='Number'>4</span>
⟨ 0 1 2 3 ⟩
@@ -96,7 +96,7 @@
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oyIYCBiIMOXIDEgKyDihpXiiaBi">↗️</a><pre> <span class='Function'>⌈</span><span class='Modifier'>`</span> <span class='Value'>b</span> <span class='Function'>×</span> <span class='Number'>1</span> <span class='Function'>+</span> <span class='Function'>↕≠</span><span class='Value'>b</span>
⟨ 0 2 3 3 3 3 7 7 ⟩
</pre>
-<h2 id="list-range">List range</h2>
+<h2 id="list-range"><a class="header" href="#list-range">List range</a></h2>
<p>When the argument is a list of numbers, the result is an array of lists.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oaVIDLigL8z4oC/NA==">↗️</a><pre> <span class='Function'>↕</span> <span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>4</span>
┌─