From 2c50d91ec7eb8bc7890befe874a0b93729c2437e Mon Sep 17 00:00:00 2001 From: razetime Date: Wed, 19 Jan 2022 22:48:16 +0530 Subject: add h2s remove copied output, ascii filenames --- help/indices_replicate.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 help/indices_replicate.md (limited to 'help/indices_replicate.md') diff --git a/help/indices_replicate.md b/help/indices_replicate.md new file mode 100644 index 00000000..9ffad842 --- /dev/null +++ b/help/indices_replicate.md @@ -0,0 +1,25 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/indices_replicate.html).* + +# Solidus (`/`) + +## `/ 𝕩`: Indices + +Repeat the index of each element in `𝕩` by the element's value. `𝕩` must be rank 1. + + / 1‿2‿3 + + / 1‿0‿1 + + + +## `𝕨 / 𝕩`: Replicate + +Repeat each major cell in `𝕩` by the corresponding element in `𝕨`. + +Atomic `𝕨` applies to all elements. + + 3 / "copy" + + 1‿0‿1 / 1‿2‿3 + + -- cgit v1.2.3