diff options
| author | razetime <raghuallthetime@hotmail.com> | 2022-01-19 22:48:16 +0530 |
|---|---|---|
| committer | razetime <raghuallthetime@hotmail.com> | 2022-01-19 22:48:16 +0530 |
| commit | 2c50d91ec7eb8bc7890befe874a0b93729c2437e (patch) | |
| tree | eb621b86b3c8269ab2dd63bd3c628acdf3521059 /docs/help/indices_replicate.html | |
| parent | 6c111f1e71e945f66977aecc3322318aa21beacc (diff) | |
add h2s remove copied output, ascii filenames
Diffstat (limited to 'docs/help/indices_replicate.html')
| -rw-r--r-- | docs/help/indices_replicate.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/help/indices_replicate.html b/docs/help/indices_replicate.html new file mode 100644 index 00000000..53979e92 --- /dev/null +++ b/docs/help/indices_replicate.html @@ -0,0 +1,24 @@ +<head> + <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/> + <link href="../style.css" rel="stylesheet"/> + <title>BQN: Solidus (`/`)</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="solidus-"><a class="header" href="#solidus-">Solidus (<code><span class='Function'>/</span></code>)</a></h1> +<h2 id="--indices"><a class="header" href="#--indices"><code><span class='Function'>/</span> <span class='Value'>𝕩</span></code>: Indices</a></h2> +<p>Repeat the index of each element in <code><span class='Value'>𝕩</span></code> by the element's value. <code><span class='Value'>𝕩</span></code> must be rank 1.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgLyAx4oC/MuKAvzMKCiAgIC8gMeKAvzDigL8x">↗️</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 1 2 2 2 ⟩ + + <span class='Function'>/</span> <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>0</span><span class='Ligature'>‿</span><span class='Number'>1</span> +⟨ 0 2 ⟩ +</pre> +<h2 id="---replicate"><a class="header" href="#---replicate"><code><span class='Value'>𝕨</span> <span class='Function'>/</span> <span class='Value'>𝕩</span></code>: Replicate</a></h2> +<p>Repeat each major cell in <code><span class='Value'>𝕩</span></code> by the corresponding element in <code><span class='Value'>𝕨</span></code>.</p> +<p>Atomic <code><span class='Value'>𝕨</span></code> applies to all elements.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgMyAvICJjb3B5IgoKICAgMeKAvzDigL8xIC8gMeKAvzLigL8z">↗️</a><pre> <span class='Number'>3</span> <span class='Function'>/</span> <span class='String'>"copy"</span> +"cccooopppyyy" + + <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>0</span><span class='Ligature'>‿</span><span class='Number'>1</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 3 ⟩ +</pre> |
