diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-01-24 17:06:40 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-01-24 17:06:40 -0500 |
| commit | c9bc3e80280fd8a38f6297de80196dcbff9c28d9 (patch) | |
| tree | 6be559af4ebeab26168836a8fb4d0b4734ecee85 /help/deshape_reshape.md | |
| parent | 3d78f125185ce47784245d6619f2878a6ad1b587 (diff) | |
Remove trailing whitespace from help/ markdown sources
Diffstat (limited to 'help/deshape_reshape.md')
| -rw-r--r-- | help/deshape_reshape.md | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/help/deshape_reshape.md b/help/deshape_reshape.md index 98e930b3..8402682e 100644 --- a/help/deshape_reshape.md +++ b/help/deshape_reshape.md @@ -1,31 +1,29 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/deshape_reshape.html).* # Barb (`⥊`) - -## `⥊ 𝕩`: Deshape - + +## `⥊ 𝕩`: Deshape + Put all elements of `𝕩` in a rank 1 array, converting to array if necessary. - + ⥊ 1 - + ⥊ 1‿2 ≍ 3‿4 - - - + + + ## `𝕨 ⥊ 𝕩`: Reshape - + Put all elements of `𝕩` in an array of shape `𝕨`, adding or removing elements if necessary. - + A single element in `𝕩` can be a function, which will be replaced with an appropriate length: - `∘` Exact fit - `⌊` Round length down, discarding elements - `⌽` Round length up - `↑` Round length up, and use element fill to add extra elements. - + 3‿3 ⥊ 3 - + 2‿⌽‿2 ⥊ 1‿2‿3 - + 2‿↑‿2 ⥊ 1‿2‿3 - - |
