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 | |
| parent | 3d78f125185ce47784245d6619f2878a6ad1b587 (diff) | |
Remove trailing whitespace from help/ markdown sources
86 files changed, 507 insertions, 645 deletions
diff --git a/docs/help/currentmodifier.html b/docs/help/currentmodifier.html index c32c8cd8..3fdf1a98 100644 --- a/docs/help/currentmodifier.html +++ b/docs/help/currentmodifier.html @@ -7,6 +7,6 @@ <h1 id="mathematical-double-struck-r-"><a class="header" href="#mathematical-double-struck-r-">Mathematical Double-struck R (<code><span class='Value'>π£</span></code>)</a></h1> <h2 id="-current-modifier"><a class="header" href="#-current-modifier"><code><span class='Value'>π£</span></code>: Current Modifier</a></h2> <p>A variable assigned to the current modifier block. Underscores must be added to the beginning and/or end (<code><span class='Modifier'>_π£</span></code>, <code><span class='Modifier2'>_π£_</span></code>) to use the modifier with the correct role.</p> -<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=K3vwnZWj4oqj8J2VqX0gNCAgICAgICAg">βοΈ</a><pre> <span class='Function'>+</span><span class='Brace'>{</span><span class='Value'>π£</span><span class='Function'>β£</span><span class='Value'>π©</span><span class='Brace'>}</span> <span class='Number'>4</span> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=K3vwnZWj4oqj8J2VqX0gNA==">βοΈ</a><pre> <span class='Function'>+</span><span class='Brace'>{</span><span class='Value'>π£</span><span class='Function'>β£</span><span class='Value'>π©</span><span class='Brace'>}</span> <span class='Number'>4</span> (1-modifier block) </pre> diff --git a/docs/help/join_jointo.html b/docs/help/join_jointo.html index 9a99a8e9..fcc69954 100644 --- a/docs/help/join_jointo.html +++ b/docs/help/join_jointo.html @@ -23,12 +23,12 @@ </pre> <h2 id="---join"><a class="header" href="#---join"><code><span class='Value'>π¨</span> <span class='Function'>βΎ</span> <span class='Value'>π©</span></code>: Join</a></h2> <p>Join <code><span class='Value'>π¨</span></code> to <code><span class='Value'>π©</span></code> along the first axis.</p> -<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgImFiY2QiIOKIviAiRUZHIgoKICAgYSDihpAgM+KAvzMg4qWKIOKGlTkKCiAgIGMg4oaQIDTigL8zIOKliiDihpUxMiAKCiAgIGHiiL5j">βοΈ</a><pre> <span class='String'>"abcd"</span> <span class='Function'>βΎ</span> <span class='String'>"EFG"</span> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgImFiY2QiIOKIviAiRUZHIgoKICAgYSDihpAgM+KAvzMg4qWKIOKGlTkKCiAgIGMg4oaQIDTigL8zIOKliiDihpUxMgoKICAgYeKIvmM=">βοΈ</a><pre> <span class='String'>"abcd"</span> <span class='Function'>βΎ</span> <span class='String'>"EFG"</span> "abcdEFG" <span class='Value'>a</span> <span class='Gets'>β</span> <span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>3</span> <span class='Function'>β₯</span> <span class='Function'>β</span><span class='Number'>9</span> - <span class='Value'>c</span> <span class='Gets'>β</span> <span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>3</span> <span class='Function'>β₯</span> <span class='Function'>β</span><span class='Number'>12</span> + <span class='Value'>c</span> <span class='Gets'>β</span> <span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>3</span> <span class='Function'>β₯</span> <span class='Function'>β</span><span class='Number'>12</span> <span class='Value'>a</span><span class='Function'>βΎ</span><span class='Value'>c</span> ββ diff --git a/docs/help/squareroot_root.html b/docs/help/squareroot_root.html index bcdbe709..ae46dceb 100644 --- a/docs/help/squareroot_root.html +++ b/docs/help/squareroot_root.html @@ -13,9 +13,9 @@ <h2 id="---root"><a class="header" href="#---root"><code><span class='Value'>π¨</span> <span class='Function'>β</span> <span class='Value'>π©</span></code>: Root</a></h2> <p><code><span class='Value'>π¨</span></code>th root of <code><span class='Value'>π©</span></code>.</p> <p><a href="../doc/arithmetic.html#pervasion">Pervasive.</a></p> -<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAyIOKImiAyCgogIDHigL8y4oC/M+KAvzQg4oiaIDQgIA==">βοΈ</a><pre> <span class='Number'>2</span> <span class='Function'>β</span> <span class='Number'>2</span> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAyIOKImiAyCgogIDHigL8y4oC/M+KAvzQg4oiaIDQ=">βοΈ</a><pre> <span class='Number'>2</span> <span class='Function'>β</span> <span class='Number'>2</span> 1.414213562373095 - <span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>2</span><span class='Ligature'>βΏ</span><span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>4</span> <span class='Function'>β</span> <span class='Number'>4</span> + <span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>2</span><span class='Ligature'>βΏ</span><span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>4</span> <span class='Function'>β</span> <span class='Number'>4</span> β¨ 4 2 1.587401051968199 1.414213562373095 β© </pre> diff --git a/help/absolutevalue_modulus.md b/help/absolutevalue_modulus.md index dd6043fc..a433273a 100644 --- a/help/absolutevalue_modulus.md +++ b/help/absolutevalue_modulus.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/absolutevalue_modulus.html).* # Pipe (`|`) - -## `| π©`: Absolute Value - + +## `| π©`: Absolute Value + Absolute Value of `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + | Β―2 | 1βΏ3βΏΒ―4βΏ3 - - + + ## `π¨ | π©`: Modulus - + Remainder of `π©` divided by `π¨`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 | 3 2 | 3βΏ4βΏΒ―5 - - diff --git a/help/after_bind.md b/help/after_bind.md index 5ad7bbdc..03759db5 100644 --- a/help/after_bind.md +++ b/help/after_bind.md @@ -1,43 +1,41 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/after_bind.html).* # Left Multimap (`β`) - -## `π½βπ π©`: Bind - + +## `π½βπ π©`: Bind + Supply `π` as a right argument to `π½` (`π© π½ π`). - + `π` is a constant, `π½` must be dyadic. - + -β3 9 - 3 9 9 - 3 - - + + ## `π½βπΎ π©`: After - -Apply `πΎ` to `π©`, and supply it as a right argument to `π½` (`π© π½ (πΎ π©)`). - + +Apply `πΎ` to `π©`, and supply it as a right argument to `π½` (`π© π½ (πΎ π©)`). + `π½` must be dyadic, `πΎ` must be monadic. - + Γβ- 9 Γ - 9 9 Γ (- 9) - - + + ## `π¨ π½βπΎ π©`: Dyadic After - -Apply `πΎ` to `π©`, and supply it as a right argument to `π½` (`π¨ π½ (πΎ π©)`). - + +Apply `πΎ` to `π©`, and supply it as a right argument to `π½` (`π¨ π½ (πΎ π©)`). + `π½` must be dyadic, `πΎ` must be monadic. - + 2 Γβ- 1 2 Γ (- 1) - - diff --git a/help/assert_assertwithmessage.md b/help/assert_assertwithmessage.md index ad11a8d3..e8081bae 100644 --- a/help/assert_assertwithmessage.md +++ b/help/assert_assertwithmessage.md @@ -1,11 +1,11 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/assert_assertwithmessage.html).* # Exclamation Mark (`!`) - + ## `! π©`: Assert - + Throw an error if `π©` is not 1. - + ! 1 ! 2 @@ -13,17 +13,14 @@ Throw an error if `π©` is not 1. ! "hello" - - + + ## `π¨ ! π©`: Assert With Message - + Throw an error with message `π¨` if `π©` is not 1. - + "hi" ! 1 "two" ! 2 "hello error" ! "hello" - - - diff --git a/help/atop.md b/help/atop.md index d936450e..ca71ff57 100644 --- a/help/atop.md +++ b/help/atop.md @@ -1,29 +1,27 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/atop.html).* # Ring Operator (`β`) - + ## `π½βπΎ π©`: Atop - + Apply `πΎ` to `π©`, then apply `π½` (`π½ πΎ π©`). - + `π½` and `πΎ` must be monadic. - + -β- 5 - - 5 - - + + ## `π¨ π½βπΎ π©`: Dyadic Atop - + Apply `πΎ` to `π¨` and `π©`, then apply `π½` (`π½ (π¨ πΎ π©)`). - + `π½` must be monadic, and `πΎ` must be dyadic. - + 1 -β+ 2 1 - + 2 - 1 + 2 - - diff --git a/help/before_bind.md b/help/before_bind.md index f47a8243..c21f03e3 100644 --- a/help/before_bind.md +++ b/help/before_bind.md @@ -1,43 +1,41 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/before_bind.html).* # Multimap (`βΈ`) - + ## `πβΈπΎ π©`: Bind Left - + Supply `π` as a left argument to `πΎ` (`π πΎ π©`). - + `π` is a constant, `πΎ` must be dyadic. - + 3βΈ- 9 3 - 9 - - + + ## `π½βΈπΎ π©`: Before - -Apply `π½` to `π©`, and supply it as a left argument to `πΎ` (`(π½ π©) πΎ π©`). - + +Apply `π½` to `π©`, and supply it as a left argument to `πΎ` (`(π½ π©) πΎ π©`). + `π½` must be monadic, `πΎ` must be dyadic. - + -βΈ+ 9 - + 9 (- 9) + 9 - - + + ## `π¨ π½βΈπΎ π©`: Dyadic Before - + Apply `π½` to `π¨`, and supply it as a left argument to `πΎ` (`(π½ π¨) πΎ π©`). - + `π½` must be monadic, `πΎ` must be dyadic. - + 2 -βΈ+ 1 2 - + 1 (- 2) + 1 - - diff --git a/help/beginblock.md b/help/beginblock.md index df6d58be..32456c45 100644 --- a/help/beginblock.md +++ b/help/beginblock.md @@ -22,4 +22,4 @@ Must end with a corresponding `}`. {a β 5} # Namespace - {5+4+6} # Immediate block
\ No newline at end of file + {5+4+6} # Immediate block diff --git a/help/beginexpression.md b/help/beginexpression.md index 8284e04f..231fa81c 100644 --- a/help/beginexpression.md +++ b/help/beginexpression.md @@ -10,4 +10,4 @@ Starts an expression, and only one expression. Must end with a corresponding `)` 1 + 2 - 3 - (1 + 2) - 3
\ No newline at end of file + (1 + 2) - 3 diff --git a/help/beginlist.md b/help/beginlist.md index 7f0a51c0..9b16c69f 100644 --- a/help/beginlist.md +++ b/help/beginlist.md @@ -12,5 +12,3 @@ Must end with a corresponding `β©`. β¨1, 2, 3β© β¨+ β - β 56β© - -
\ No newline at end of file diff --git a/help/catch.md b/help/catch.md index 5f1b3087..a14cb6d1 100644 --- a/help/catch.md +++ b/help/catch.md @@ -1,17 +1,15 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/catch.html).* # Circled Triangle Down (`β`) - + ## `π½βπΎ π©`, `π¨ π½βπΎ π©`: Catch - -Apply `π½` to the arguments. - -If an error happens when `π½` is applied, cancel its execution, apply `πΎ` to the arguments and return the results. - + +Apply `π½` to the arguments. + +If an error happens when `π½` is applied, cancel its execution, apply `πΎ` to the arguments and return the results. + Otherwise, return the results of `π½`. - + βΎβ{"error occurred with argument: "βΎβ’Fmt π©} 1 βΎβ{"error occurred with argument: "βΎβ’Fmt π©} β¨β¨1,2β©, β¨3,4β©β© - - diff --git a/help/ceiling_maximum.md b/help/ceiling_maximum.md index 629f35a1..63bf007e 100644 --- a/help/ceiling_maximum.md +++ b/help/ceiling_maximum.md @@ -1,25 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/ceiling_maximum.html).* # Left Ceiling (`β`) - -## `β π©`: Ceiling - + +## `β π©`: Ceiling + Round `π©` up. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + β 1.2βΏΟβΏ3βΏ7.89 - - + + ## `π¨ β π©`: Maximum - + Maximum of `π¨` and `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 β 2 2βΏ3 β 4βΏ2 - - diff --git a/help/cells.md b/help/cells.md index 6f21a19f..d5bec6be 100644 --- a/help/cells.md +++ b/help/cells.md @@ -1,17 +1,14 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/cells.html).* # Breve (`Λ`) - + ## `π½Λ π©`, `π¨ π½Λ π©`: Cells - + Apply `π½` to/between the major cells of the arguments. (`π½βΒ―1`) - + a β 3βΏ3 β₯ β9 <Λ a a βΛ a - - - diff --git a/help/change.md b/help/change.md index d44d0a66..d4f7aa70 100644 --- a/help/change.md +++ b/help/change.md @@ -12,4 +12,4 @@ Variable `n` must already exist. β’ b β 3 - β’ b β© "Be the change you wish to see in the world."
\ No newline at end of file + β’ b β© "Be the change you wish to see in the world." diff --git a/help/choose.md b/help/choose.md index c6af346b..0fa6fcb5 100644 --- a/help/choose.md +++ b/help/choose.md @@ -1,11 +1,11 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/choose.html).* # Circle with Lower Right Quadrant (`βΆ`) - + ## `π½βΆπ π©`, `π¨ π½βΆπ π©`: Choose - + Apply `π½` to the arguments and pick a function from list `π`. Apply the picked function to the arguments. - + F β β’βΆ+βΏ-βΏΓ·βΏΓ F 0 @@ -15,5 +15,3 @@ Apply `π½` to the arguments and pick a function from list `π`. Apply the pi F 2 F 3 - - diff --git a/help/classify_indexof.md b/help/classify_indexof.md index 8cef889f..a9f4f4e8 100644 --- a/help/classify_indexof.md +++ b/help/classify_indexof.md @@ -1,30 +1,27 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/classify_indexof.html).* # Square Original Of (`β`) - -## `β π©`: Classify - + +## `β π©`: Classify + First index of each major cell of `π©` in `π©`. - + β 5βΏ6βΏ2βΏ2βΏ5βΏ1 a β 3βΏ3 β₯ 0βΏ1βΏ2βΏ9βΏ0βΏ9βΏ0βΏ1βΏ2 β a - - + + ## `π¨ β π©`: Index Of - + First index of each major cell of `π©` in `π¨`. Rank of `π©` must be at least cell rank of π¨`. - -If a cell is not found in `π¨`, that position will contain the length of `π¨` (`β π¨`). - + +If a cell is not found in `π¨`, that position will contain the length of `π¨` (`β π¨`). + 5βΏ6βΏ2βΏ2βΏ5βΏ1 β 5βΏ2βΏ1βΏ6 b β 3βΏ3 β₯ 0βΏ1βΏ2βΏ9βΏ0βΏ9βΏ0βΏ1βΏ2 b β β¨9βΏ0βΏ9β© - - - diff --git a/help/comment.md b/help/comment.md index 25943a31..79e9c081 100644 --- a/help/comment.md +++ b/help/comment.md @@ -11,4 +11,4 @@ Anything written in comments is ignored. 1 + 2 # + 3 + 4 - "Hello world!" # this is ignored!
\ No newline at end of file + "Hello world!" # this is ignored! diff --git a/help/conjugate_add.md b/help/conjugate_add.md index 57e9a0a9..199e6cb3 100644 --- a/help/conjugate_add.md +++ b/help/conjugate_add.md @@ -1,24 +1,22 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/conjugate_add.html).* # Plus (`+`) - + ## `+ π©`: Conjugate - + + 1 + Β―1 - + ## `π¨ + π©`: Add - + `π¨` added to `π©`. Either `π¨` or `π©` can be a character, and if so, the other has to be an integer. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 + 2 1 + 2βΏ3βΏ4 'a' + 4 - - diff --git a/help/constant.md b/help/constant.md index 0939831c..d964ff3e 100644 --- a/help/constant.md +++ b/help/constant.md @@ -1,13 +1,11 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/constant.html).* # Dot Above (`Λ`) - + ## `π½Λ π©`, `π¨ π½Λ π©`: Constant - + Returns a function that will always return `π`. - + "hello" (1 Λ) 2 "hello" ({π¨+π©} Λ) 2 - - diff --git a/help/currentmodifier.md b/help/currentmodifier.md index f76cc98a..590ec680 100644 --- a/help/currentmodifier.md +++ b/help/currentmodifier.md @@ -7,4 +7,4 @@ A variable assigned to the current modifier block. Underscores must be added to the beginning and/or end (`_π£`, `_π£_`) to use the modifier with the correct role. - +{π£β£π©} 4
\ No newline at end of file + +{π£β£π©} 4 diff --git a/help/deduplicate_find.md b/help/deduplicate_find.md index 168927c6..38a463bd 100644 --- a/help/deduplicate_find.md +++ b/help/deduplicate_find.md @@ -1,25 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/deduplicate_find.html).* # Epsilon Underbar (`β·`) - + ## `β· π©`: Deduplicate - + Unique major cells of `π©`. - + β· 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 a β 3βΏ3 β₯ β6 β· a - - + + ## `π¨ β· π©`: Find - + Mark the top left location of the occurrences of `π¨` in `π©` with a 1, and other locations with 0. - + Result is the same shape as `(β’π¨)βx`. - + "string" β· "substring" "loooooong" β· "short" @@ -29,5 +29,3 @@ Result is the same shape as `(β’π¨)βx`. c β (0βΏ3βΏ0β0βΏ1βΏ0) c β· b - - diff --git a/help/define.md b/help/define.md index b36b5fc0..9947af70 100644 --- a/help/define.md +++ b/help/define.md @@ -12,4 +12,4 @@ Variable `n` must not already exist. β’ b β 3βΏ3 β₯ 5 - C β β
\ No newline at end of file + C β β diff --git a/help/depth.md b/help/depth.md index 45be27e8..145203cb 100644 --- a/help/depth.md +++ b/help/depth.md @@ -1,14 +1,12 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/depth.html).* # Circle With Two Dots (`β`) - + ## `π½βπ π©`, `π¨ π½βπ π©`: Depth - + Apply `π½` to the cells of the arguments at depth given in `π`. - - + + 1βΈββ1 β¨β¨1,2,3β©, β¨4,5,6β©β© 1 ββ1 β¨β¨1,2,3β©, β¨4,5,6β©β© - - diff --git a/help/depth_match.md b/help/depth_match.md index 99c9dfdf..5813e6e6 100644 --- a/help/depth_match.md +++ b/help/depth_match.md @@ -1,25 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/depth_match.html).* # Identical To (`β‘`) - + ## `β‘ π©`: Depth - + Highest level of nesting in `π©`. - + β‘ 2βΏ3βΏ4 β‘ β¨2,<3,4,<<<5β© β‘ 9 - - + + ## `π¨ β‘ π©`: Match - + Does `π¨` exactly match `π©`? - + 1 β‘ β¨1β© β¨1β© β‘ β¨1β© - - 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 - - diff --git a/help/each.md b/help/each.md index a34392c6..287587bc 100644 --- a/help/each.md +++ b/help/each.md @@ -1,13 +1,11 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/each.html).* # Diaresis (`Β¨`) - + ## `π½Β¨ π©`, `π¨ π½Β¨ π©`: Each - + Apply `π½` to/between the major elements of the arguments. (`π½βΒ―1`) - + <Β¨ 1βΏ2βΏ3 4βΏ5βΏ6 βΎΒ¨ 1βΏ2βΏ3 - - diff --git a/help/endblock.md b/help/endblock.md index a10aa907..ed3b6e3a 100644 --- a/help/endblock.md +++ b/help/endblock.md @@ -14,4 +14,4 @@ Starts a block, which starts with `}`. See [Begin Block](beginblock.md) for more {a β 5} # Namespace - {5+4+6} # Immediate block
\ No newline at end of file + {5+4+6} # Immediate block diff --git a/help/endexpression.md b/help/endexpression.md index d65f6520..ce767592 100644 --- a/help/endexpression.md +++ b/help/endexpression.md @@ -9,4 +9,4 @@ The closing symbol for `(`. See [Begin Expression](beginexpression.md) for more 1 + 2 - 3 - (1 + 2) - 3
\ No newline at end of file + (1 + 2) - 3 diff --git a/help/endlist.md b/help/endlist.md index 9d698dcc..0e76b84f 100644 --- a/help/endlist.md +++ b/help/endlist.md @@ -10,5 +10,3 @@ Ends a list started by a `β¨`. See [Begin List](beginlist.md) for more details. β¨1, 2, 3β© β¨+ β - β 56β© - -
\ No newline at end of file diff --git a/help/enlist_pair.md b/help/enlist_pair.md index 88168860..8cd2f515 100644 --- a/help/enlist_pair.md +++ b/help/enlist_pair.md @@ -1,25 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/enlist_pair.html).* # Bow Tie (`β`) - -## `β π©`: Enlist - + +## `β π©`: Enlist + Put `π©` in a single element list. (`β¨π©β©`) - + β 1 β 4βΏ4 β₯ 3βΏ67βΏ8βΏ0 - - + + ## `π¨ β π©`: Pair - + Put `π¨` and `π©` in a two element list. (`β¨π¨, π©β©`) - + 1 β 2 1 β "dsdasdas" (3βΏ3 β₯ 3) β 67βΏ'a'βΏ"example" - - diff --git a/help/exponential_power.md b/help/exponential_power.md index cdc432e2..aabca777 100644 --- a/help/exponential_power.md +++ b/help/exponential_power.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/exponential_power.html).* # Star (`β`) - -## `β π©`: Exponential - + +## `β π©`: Exponential + `e` (Euler's constant) to the power of `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + β 0βΏ1βΏ2βΏ3 - - + + ## `π¨ β π©`: Power - + `π¨` to the power of `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 2 β 5 8βΏ5βΏ9 β 2 2βΏ3 β 3βΏΒ―4 - - diff --git a/help/export.md b/help/export.md index 39821667..c19e7f83 100644 --- a/help/export.md +++ b/help/export.md @@ -16,4 +16,4 @@ Export the names given in `π©` from the current namespace or program's scope. ns1 β { β¨alsoexportedβ©β, exported β 5, alsoexported β 0} ns1.exported - ns1.alsoexported
\ No newline at end of file + ns1.alsoexported diff --git a/help/first_pick.md b/help/first_pick.md index c85be515..c9c0093e 100644 --- a/help/first_pick.md +++ b/help/first_pick.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/first_pick.html).* # Square Image Of Or Equal To (`β`) - + ## `β π©`: First - + First element of `π©`. - + β β¨1, 2, 3β© a β 3βΏ3 β₯ β9 β a - - + + ## `π¨ β π©`: Pick - + Pick the element of `π¨` at index `π©`. - + 2 β β¨1, 2, 3β© b β 3βΏ3 β₯ β9 2βΏ0 β b - - diff --git a/help/firstcell_select.md b/help/firstcell_select.md index 06cd6010..1c703219 100644 --- a/help/firstcell_select.md +++ b/help/firstcell_select.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/firstcell_select.html).* # Square Image Of (`β`) - + ## `β π©`: First Cell - + First major cell of `π©`. - + β β¨1, 2, 3β© a β 3βΏ3 β₯ β9 β a - - + + ## `π¨ β π©`: Select - + Select the major cells of `π¨` at the indices in `π©`. - + 2βΏ0 β β¨1, 2, 3β© b β 3βΏ3 β₯ β9 2βΏ0 β b - - diff --git a/help/floor_minimum.md b/help/floor_minimum.md index 05e8f701..997c64ef 100644 --- a/help/floor_minimum.md +++ b/help/floor_minimum.md @@ -1,25 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/floor_minimum.html).* # Left Floor (`β`) - -## `β π©`: Floor - + +## `β π©`: Floor + Round `π©` down. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + β 1.2βΏΟβΏ3βΏ7.89 - - + + ## `π¨ β π©`: Minimum - + Minimum of `π¨` and `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 β 2 2βΏ3 β 4βΏ2 - - diff --git a/help/fold.md b/help/fold.md index 33b2e0f5..24c79f30 100644 --- a/help/fold.md +++ b/help/fold.md @@ -1,9 +1,9 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/fold.html).* # Acute Accent (`Β΄`) - + ## `π½Β΄ π©`: Fold - + Fold over `π©` with `π½` from right to left i.e. Insert `π½` between the elements of `π©`. `π©` must be a simple list (`1 = =π©`). @@ -16,11 +16,11 @@ Fold over `π©` with `π½` from right to left i.e. Insert `π½` between the e 1-2-3 - + ## `π¨ π½Β΄ π©`: Fold With initial - + Monadic fold, but use `π¨` as initial right argument. - + 5 +Β΄ 1βΏ2βΏ3 1+2+3+5 @@ -28,5 +28,3 @@ Monadic fold, but use `π¨` as initial right argument. 5 -Β΄ 1βΏ2βΏ3 1-2-3-5 - - diff --git a/help/gradedown_binsdown.md b/help/gradedown_binsdown.md index 36f37159..6aced8a8 100644 --- a/help/gradedown_binsdown.md +++ b/help/gradedown_binsdown.md @@ -1,29 +1,27 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/gradedown_binsdown.html).* # Del Stile (`β`) - + ## `β π©`: Grade Down - + Indices of `π©` that would sort its major cells in descending order. - + a β 1βΏ2βΏ3 β a (βa) β a - - + + ## `π¨ β π©`: Bins Down - -Binary search for each element of `π©` in `π¨`, and return the index found, if any. - + +Binary search for each element of `π©` in `π¨`, and return the index found, if any. + `π¨` must be sorted in descending order. - + [Right Pervasive.](../doc/arithmetic.md#pervasion) - + 7βΏ5βΏ4βΏ3 β 2 7βΏ5βΏ4βΏ3 β 2βΏ6 - - diff --git a/help/gradeup_binsup.md b/help/gradeup_binsup.md index 7a73116d..e1a9ac2c 100644 --- a/help/gradeup_binsup.md +++ b/help/gradeup_binsup.md @@ -1,28 +1,26 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/gradeup_binsup.html).* # Delta Stile (`β`) - + ## `β π©`: Grade Up - + Indices of `π©` that would sort its major cells in ascending order. - + a β 3βΏ2βΏ1 β a (βa) β a - - - + + + ## `π¨ β π©`: Bins Up - -Binary search for each element of `π©` in `π¨`, and return the index found, if any. - + +Binary search for each element of `π©` in `π¨`, and return the index found, if any. + `π¨` must be sorted in ascending order. - + 3βΏ4βΏ5βΏ7 β 2 3βΏ4βΏ5βΏ7 β 2βΏ6 - - diff --git a/help/greaterthanorequalto.md b/help/greaterthanorequalto.md index cffdb24e..6ddbdc36 100644 --- a/help/greaterthanorequalto.md +++ b/help/greaterthanorequalto.md @@ -1,15 +1,13 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/greaterthanorequalto.html).* # Greater Than or Equal To (`β₯`) - + ## `π¨ β₯ π©`: Greater Than or Equal To - + `π¨` and `π©` can both be either numbers or characters. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 β₯ 3 2βΏ3βΏ0 β₯ 3βΏ1βΏ0 - - diff --git a/help/groupindices_group.md b/help/groupindices_group.md index 5afa162b..1dc11605 100644 --- a/help/groupindices_group.md +++ b/help/groupindices_group.md @@ -1,31 +1,29 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/groupindices_group.html).* # Square Cup (`β`) - + ## `β π©`: Group Indices - + Group the indices of the major cells of `π©` by their respective values. - -`π©` must consist of integers. Groups start from 0. - + +`π©` must consist of integers. Groups start from 0. + β 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 (β8) β β 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 - - + + ## `π¨ β π©`: Group - + Group the major cells of `π©` by their respective indices in `π¨`. - + If an element corresponds to `Β―1`, it is excluded from grouping. - + An extra element can be added to the end of `π¨` to specify length of the result. - + 1βΏ0βΏ1βΏ2βΏ2βΏ3βΏ3 β 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 1βΏ0βΏ1βΏΒ―1βΏΒ―1βΏ3βΏ3 β 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 1βΏ0βΏ1βΏΒ―1βΏΒ―1βΏ3βΏ3βΏ10 β 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 - - diff --git a/help/identity_left.md b/help/identity_left.md index 3a61225b..c96f1b8c 100644 --- a/help/identity_left.md +++ b/help/identity_left.md @@ -1,21 +1,19 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/identity_left.html).* # Left Tack (`β£`) - + ## `β£ π©`: Identity - + Return `π©`. - + β£ 5 - - + + ## `π¨ β£ π©`: Left - + Return `π¨`. - + 5 β£ 8 'a' β£ 1βΏ2βΏ3 - - diff --git a/help/identity_right.md b/help/identity_right.md index da81bf11..475a3b4a 100644 --- a/help/identity_right.md +++ b/help/identity_right.md @@ -1,21 +1,19 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/identity_right.html).* # Right Tack (`β’`) - + ## `β’ π©`: Identity - + Return `π©`. - + β’ 5 - - + + ## `π¨ β’ π©`: Right - + Return `π©`. - + 5 β’ 8 'a' β’ 1βΏ2βΏ3 - - diff --git a/help/indices_replicate.md b/help/indices_replicate.md index 9ffad842..4d4d5515 100644 --- a/help/indices_replicate.md +++ b/help/indices_replicate.md @@ -1,25 +1,23 @@ *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 - - diff --git a/help/infinity.md b/help/infinity.md index 5ea6cb3f..e607d3f6 100644 --- a/help/infinity.md +++ b/help/infinity.md @@ -11,4 +11,4 @@ Mathematical constant Infinity. Shares the same status as other numbers, can be Β―β - 1+β
\ No newline at end of file + 1+β diff --git a/help/insert.md b/help/insert.md index b038b34f..22e6814b 100644 --- a/help/insert.md +++ b/help/insert.md @@ -1,24 +1,24 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/insert.html).* # Double Acute Accent (`Λ`) - + ## `π½Λ π©`: Insert - + Fold over `π©` with `π½` from right to left i.e. Insert `π½` between the major cells of `π©`. - + a β 3βΏ3 β₯ β9 +Λ a 0βΏ1βΏ2 + 3βΏ4βΏ5 + 6βΏ7βΏ8 - + ## `π¨ π½Λ π©`: Insert With initial - + Monadic insert, but use `π¨` as initial right argument. -If - +If + b β 3βΏ3 β₯ β9 1βΏ1βΏ1 +Λ b @@ -26,7 +26,3 @@ If 1 +Λ b 0βΏ1βΏ2 + 3βΏ4βΏ5 + 6βΏ7βΏ8 + 1βΏ1βΏ1 - - - - diff --git a/help/join_jointo.md b/help/join_jointo.md index 13419744..fa70f1a3 100644 --- a/help/join_jointo.md +++ b/help/join_jointo.md @@ -1,31 +1,29 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/join_jointo.html).* # Lazy S (`βΎ`) - -## `βΎ π©`: Join - + +## `βΎ π©`: Join + Join all elements of `π©` together. - + Element ranks must be compatible. - + βΎ β¨1βΏ2, 3, 4βΏ5β© m β (3βΏ1ββ4βΏ2βΏ5) β₯Β¨ 2βΏ3β₯β6 βΎ m - - + + ## `π¨ βΎ π©`: Join - + Join `π¨` to `π©` along the first axis. - + "abcd" βΎ "EFG" a β 3βΏ3 β₯ β9 - c β 4βΏ3 β₯ β12 + c β 4βΏ3 β₯ β12 aβΎc - - diff --git a/help/leftargument.md b/help/leftargument.md index 3b179335..38bb6183 100644 --- a/help/leftargument.md +++ b/help/leftargument.md @@ -6,4 +6,4 @@ A variable assigned to the left argument of a block. `π` can be used to access the left argument as a function. - 5 {π¨} 1
\ No newline at end of file + 5 {π¨} 1 diff --git a/help/length_notequals.md b/help/length_notequals.md index 4d694efd..1842e072 100644 --- a/help/length_notequals.md +++ b/help/length_notequals.md @@ -1,12 +1,12 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/length_notequals.html).* # Not Equal (`β `) - + ## `β π©`: Length - + Length of the first dimension of `π©`. - - + + β 3 β β¨1, 2, 3β© @@ -17,16 +17,14 @@ Length of the first dimension of `π©`. β 4βΏ4βΏ5β₯0 - - + + ## `π¨ β π©`: Not Equal To - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 β 3 2βΏ3βΏ0 β 3βΏ1βΏ0 'a' β 'a' - - diff --git a/help/lessthanorequalto.md b/help/lessthanorequalto.md index 5bd81d62..4c2a2b70 100644 --- a/help/lessthanorequalto.md +++ b/help/lessthanorequalto.md @@ -1,15 +1,13 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/lessthanorequalto.html).* # Lesser Than or Equal To (`β€`) - + ## `π¨ β€ π©`: Lesser Than or Equal To - + `π¨` and `π©` can both be either numbers or characters. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 β€ 3 2βΏ3βΏ0 β€ 3βΏ1βΏ0 - - diff --git a/help/markfirst_memberof.md b/help/markfirst_memberof.md index e5f38079..e57552dc 100644 --- a/help/markfirst_memberof.md +++ b/help/markfirst_memberof.md @@ -1,23 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/markfirst_memberof.html).* # Element Of (`β`) - + ## `β π©`: Unique Mask - + Mark the first occurrence of each major cell in `π©` with a 1, and all other occurrences with a 0. - + β 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 a β 3βΏ3 β₯ β9 β a - - + + ## `π¨ β π©`: Member Of - + Is each element in `π¨` a major cell of `π©`? - + β¨1β© β β9 b β 3βΏ3 β₯ β9 @@ -25,5 +25,3 @@ Is each element in `π¨` a major cell of `π©`? β¨0βΏ1βΏ2β© β b β¨1βΏ3 β₯ 0βΏ1βΏ2β© β b - - diff --git a/help/merge_greaterthan.md b/help/merge_greaterthan.md index 97dc7a57..53ad43cc 100644 --- a/help/merge_greaterthan.md +++ b/help/merge_greaterthan.md @@ -1,16 +1,16 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/merge_greaterthan.html).* # Greater Than (`>`) - -## `> π©`: Merge - + +## `> π©`: Merge + Add the rank of an element of `π©` to the rank of `π©`. - + All elements must have the same rank. - + Returns atomic values as is. - - + + a β β¨β¨1, 2β©, β¨3, 4β©β© >a @@ -19,19 +19,17 @@ Returns atomic values as is. β’>a - - - + + + ## `π¨ > π©`: Greater Than - + `π¨` and `π©` can both be either numbers or characters. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 > 3 2βΏ3βΏ0 > 3βΏ1βΏ0 'a' > 'b' - - diff --git a/help/minus.md b/help/minus.md index 2d85e1e7..6669c562 100644 --- a/help/minus.md +++ b/help/minus.md @@ -11,4 +11,4 @@ Note that this is not the same as `-`, since it is part of the number, rather th -1βΏ2βΏ3 - Β―1βΏ2βΏ3
\ No newline at end of file + Β―1βΏ2βΏ3 diff --git a/help/negate_subtract.md b/help/negate_subtract.md index 5f88c791..ddde712f 100644 --- a/help/negate_subtract.md +++ b/help/negate_subtract.md @@ -1,24 +1,24 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/negate_subtract.html).* # Minus (`-`) - + ## `- π©`: Negate - + Additive Inverse of `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + - 1 - Β―1 - + ## `π¨ - π©`: Subtract - + Subtract `π©` from `π¨`. `π¨` and `π©` can be characters or integers. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 - 2 1 - 2βΏ3βΏ4 @@ -26,5 +26,3 @@ Subtract `π©` from `π¨`. `π¨` and `π©` can be characters or integers. 'a' - 4 'b' - 'a' - - diff --git a/help/not_span.md b/help/not_span.md index c194e8d3..791cb23e 100644 --- a/help/not_span.md +++ b/help/not_span.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/not_span.html).* # Not (`Β¬`) - -## `Β¬ π©`: Logical Not - + +## `Β¬ π©`: Logical Not + Logical Not of `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + Β¬ 0 Β¬ 1βΏ0 - - + + ## `π¨ Β¬ π©`: Span - + Count of numbers in the inclusive range from `π©` to `π¨`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 3 Β¬ 1 3βΏ4 Β¬ 0βΏ2 - - diff --git a/help/nothing.md b/help/nothing.md index b5ef7fe3..17e42319 100644 --- a/help/nothing.md +++ b/help/nothing.md @@ -19,5 +19,3 @@ For Block header pattern matching syntax, Nothing can be used to indicate an unu F β {π aβΏΒ·βΏb: aβΎb} F 1βΏ2βΏ3 - -
\ No newline at end of file diff --git a/help/nullcharacter.md b/help/nullcharacter.md index b13eb3f0..be64b878 100644 --- a/help/nullcharacter.md +++ b/help/nullcharacter.md @@ -13,4 +13,4 @@ Can be added to any positive integer to get its character equivalent. @ - @+64
\ No newline at end of file + @+64 diff --git a/help/occurrencecount_progressiveindexof.md b/help/occurrencecount_progressiveindexof.md index ba1026e5..3b0fe118 100644 --- a/help/occurrencecount_progressiveindexof.md +++ b/help/occurrencecount_progressiveindexof.md @@ -1,23 +1,21 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/occurrencecount_progressiveindexof.html).* # Square Original Of or Equal To (`β`) - + ## `β π©`: Occurrence Count - + Number of times each major cell of `π©` appears before itself. - + β 2βΏ7βΏ1βΏ8βΏ1βΏ7βΏ1βΏ8βΏ2βΏ8βΏ4 βββ 2βΏ7βΏ1βΏ8βΏ1βΏ7βΏ1βΏ8βΏ2βΏ8βΏ4 - - + + ## `π¨ β π©`: Progressive Index Of - + Index of the first unused match of each major cell of `π©` in `π¨`. If there are no more matches left, length of `π¨` is placed in that position. - + "aaa" β "aaaaa" "aaabb" β "ababababab" - - diff --git a/help/over.md b/help/over.md index 38795145..1ed1a9c3 100644 --- a/help/over.md +++ b/help/over.md @@ -1,29 +1,27 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/over.html).* # Circle (`β`) - + ## `π½βπΎ π©`: Atop - + Apply `πΎ` to `π©`, then apply `π½` (`π½ πΎ π©`). - + `π½` and `πΎ` must be monadic. - + -β- 5 - - 5 - - + + ## `π¨ π½βπΎ π©`: Over - + Apply `πΎ` to `π¨` and `π©`, then apply `π½` to them (`(πΎ π¨) π½ (πΎ π©)`). - + `π½` must be dyadic, `πΎ` must be monadic. - + 1 +β- 2 1 + - 2 (- 1) + (- 2) - - @@ -9,4 +9,4 @@ Mathematical constant pi. Shares the same status as other numbers, can be negati Ο - Β―Ο
\ No newline at end of file + Β―Ο diff --git a/help/prefixes_take.md b/help/prefixes_take.md index 6b87d124..74ae470e 100644 --- a/help/prefixes_take.md +++ b/help/prefixes_take.md @@ -1,27 +1,27 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/prefixes_take.html).* # Up Arrow (`β`) - + ## `β π©`: Prefixes - + Prefixes of array `π©` along its first axis. - + β 1βΏ2βΏ3βΏ4 a β 3βΏ3 β₯ β9 β a - - + + ## `π¨ β π©`: Take - + For each integer in `π¨`, take that many elements from each dimension of `π©`. - + Negative numbers take from the end. - + If any of the elements in `π¨` are greater than the length of their respective dimension, the dimension is extended with a fill value. - + 3 β 1βΏ3βΏ5βΏ67 b β 4βΏ4 β₯ β16 @@ -31,5 +31,3 @@ If any of the elements in `π¨` are greater than the length of their respective 5βΏ5 β b 3βΏΒ―3 β b - - diff --git a/help/range_windows.md b/help/range_windows.md index d4f82a1c..ce697464 100644 --- a/help/range_windows.md +++ b/help/range_windows.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/range_windows.html).* # Up Down Arrow (`β`) - -## `β π©`: Range - + +## `β π©`: Range + Return all indices to index into an array of shape `π©`, in the shape described by `π©`. - + When given a single number, range from 0 to `π©-1`. - + β 4 β 4βΏ5 - - + + ## `π¨ β π©`: Windows - + Overlapping slices of `π©` which are of shape `π¨`. - + 5 β "abcdefg" a β 3βΏ3β₯β9 2βΏ2 β a - - diff --git a/help/rank.md b/help/rank.md index 0bbab822..e355ef8d 100644 --- a/help/rank.md +++ b/help/rank.md @@ -1,20 +1,18 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/rank.html).* # Circled Horizontal Bar With Notch (`β`) - + ## `π½βπ π©`, `π¨ π½βπ π©`: Rank - + Apply `π½` to cells at ranks given in `π`. - + The ranks applied are given by the following: - + - `β c` Rank-c cells of `π©` (monadic) or both arguments (dyadic) - `β bβΏc` β Rank-b cells of `π¨` and rank-c cells of `π©` (dyadic) - `β aβΏbβΏc` β Rank-a cells of `π©` (monadic), b-cells of `π¨` and c-cells of `π©` (dyadic) - - + + a β 3βΏ2βΏ4β₯"ABCDEFGHIJKLMNOPQRSTUVWXYZ" β½β2 a - - diff --git a/help/rank_equals.md b/help/rank_equals.md index 50575a4b..61844244 100644 --- a/help/rank_equals.md +++ b/help/rank_equals.md @@ -1,12 +1,12 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/rank_equals.html).* # Equal (`=`) - + ## `= π©`: Rank - + Returns the number of dimensions in `π©`. - - + + = 0 = 3β₯0 @@ -15,16 +15,14 @@ Returns the number of dimensions in `π©`. 3βΏ3βΏ3 β₯ β¨β¨0β©β© - - + + ## `π¨ = π©`: Equal To - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 = 3 2βΏ3βΏ0 = 3βΏ1βΏ0 'a' = 'a' - - diff --git a/help/reciprocal_divide.md b/help/reciprocal_divide.md index 9d307c02..d55dfb6a 100644 --- a/help/reciprocal_divide.md +++ b/help/reciprocal_divide.md @@ -1,26 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/reciprocal_divide.html).* # Divide (`Γ·`) - -## `Γ· π©`: Reciprocal - + +## `Γ· π©`: Reciprocal + Gives `1 Γ· π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + Γ· 5 - - + + ## `π¨ Γ· π©`: Divide - + `π¨` divided by `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) 5 Γ· 4 14 Γ· 7 - - - diff --git a/help/repeat.md b/help/repeat.md index 4a94ac57..e394a593 100644 --- a/help/repeat.md +++ b/help/repeat.md @@ -1,17 +1,15 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/repeat.html).* # Circle Star (`β`) - + ## `π½βπΎ π©`, `π¨ π½βπΎ π©`: Repeat - + Apply `πΎ` to `π¨` and `π©` and apply `π½` to `π©` that may times. If `π¨` is given, keep it as a constant left argument. - + If `πΎ` returns an array, give `π½βπ©` for each element. - + 1 +ββ’ 4 1 +β1βΏ2βΏ3 4 3 βΎβ{β π©} β¨4,5,6β© - - diff --git a/help/reverse_rotate.md b/help/reverse_rotate.md index 0eedfc62..859fbd18 100644 --- a/help/reverse_rotate.md +++ b/help/reverse_rotate.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/reverse_rotate.html).* # Circle Stile (`β½`) - -## `β½ π©`: Reverse - + +## `β½ π©`: Reverse + Reverse the first axis of `π©`. - + β½ 1βΏ2βΏ3 a β 3βΏ3 β₯ β9 β½ a - - + + ## `π¨ β½ π©`: Dyad - + Move the first `π¨` elements of `π©` to its end. Negative `π¨` reverses the direction of rotation. - + 2 β½ 1βΏ2βΏ3 b β 3βΏ3 β₯ β9 2 β½ b - - diff --git a/help/rightargument.md b/help/rightargument.md index 69ec6394..531bec37 100644 --- a/help/rightargument.md +++ b/help/rightargument.md @@ -6,4 +6,4 @@ A variable assigned to the right argument of a block. `π` can be used to access the right argument as a function. - 5 {π©} 1
\ No newline at end of file + 5 {π©} 1 diff --git a/help/scan.md b/help/scan.md index 1847de86..126418a2 100644 --- a/help/scan.md +++ b/help/scan.md @@ -1,12 +1,12 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/scan.html).* # Grave (`` ` ``) - + ## ``π½` π©``: Scan - + Scan over `π©` with `π½` from left to right, producing intermediate values. - - + + +` 1βΏ2βΏ3 β¨1, 1+2, (1+2)+3β© @@ -15,11 +15,11 @@ Scan over `π©` with `π½` from left to right, producing intermediate values. β¨1, 1-2, (1-2)-3β© - + ## ``π¨ π½` π©``: Scan With initial - + Monadic scan, but use `π¨` as initial left argument. - + 5 +` 1βΏ2βΏ3 β¨5+1, (5+1)+2, ((5+1)+2)+3β© @@ -27,5 +27,3 @@ Monadic scan, but use `π¨` as initial left argument. 5 -` 1βΏ2βΏ3 β¨5-1, (5-1)-2, ((5-1)-2)-3β© - - diff --git a/help/self_swap.md b/help/self_swap.md index fdd4dcc8..f75cb75f 100644 --- a/help/self_swap.md +++ b/help/self_swap.md @@ -1,23 +1,21 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/self_swap.html).* # Small Tilde (`Λ`) - + ## `π½Λ π©`: Self - + Supplies `π©` as a left argument to `π½` (`π© π½ π©`). - + 1 + 1 +Λ 1 - - + + ## `π¨ π½Λ π©`: Swap - + Swaps the arguments of `π½` (`π© π½ π¨`). - + 1 - 2 1 -Λ 2 - - diff --git a/help/separator.md b/help/separator.md index 9c02aa59..cb353d1f 100644 --- a/help/separator.md +++ b/help/separator.md @@ -12,4 +12,4 @@ Separates statements in blocksβ programs and arrays. β¨1 β 2 β 3β© - {1 β 2 β 3}
\ No newline at end of file + {1 β 2 β 3} diff --git a/help/separator1.md b/help/separator1.md index 90296f2f..54dcb216 100644 --- a/help/separator1.md +++ b/help/separator1.md @@ -12,4 +12,4 @@ Separates statements in blocks, programs and arrays. β¨1, 2, 3β© - {1, 2, 3}
\ No newline at end of file + {1, 2, 3} diff --git a/help/shape_notmatch.md b/help/shape_notmatch.md index 663d1d61..57b4fcb9 100644 --- a/help/shape_notmatch.md +++ b/help/shape_notmatch.md @@ -1,25 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/shape_notmatch.html).* # Not Identical To (`β’`) - + ## `β’ π©`: Shape - + Length of each dimension of x. - + β’ 1 β’ 1βΏ2 β’ 1βΏ2 β 3βΏ4 - - + + ## `π¨ β’ π©`: Not Match - + Does `π¨` not exactly match `π©`? - + 1 β’ β¨1β© β¨1β© β’ β¨1β© - - diff --git a/help/shiftafter.md b/help/shiftafter.md index 08e42a89..40c4dfb2 100644 --- a/help/shiftafter.md +++ b/help/shiftafter.md @@ -1,21 +1,21 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/shiftafter.html).* # Right Pointing Double Angle Quotation (`Β»`) - + ## `Β» π©`: Shift After - + Remove the last element of `π©`, add a cell of fill values to the start of the first axis of `π©`. - + Β» 1βΏ2βΏ3 Β» 3βΏ3 β₯ 9 - - + + ## `π¨ Β» π©`: Shift After - + Remove the last `β π¨` (length) major cells from `π©`, join `π¨` to the start of `π©`. Ranks must match. - + 78 Β» 1βΏ2βΏ3 1βΏ2 Β» 1βΏ2βΏ3 @@ -23,5 +23,3 @@ Remove the last `β π¨` (length) major cells from `π©`, join `π¨` to the s a β 3βΏ3 β₯ 9 1βΏ2βΏ3 Β» a - - diff --git a/help/shiftbefore.md b/help/shiftbefore.md index ca32833f..9895239d 100644 --- a/help/shiftbefore.md +++ b/help/shiftbefore.md @@ -1,27 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/shiftbefore.html).* # Left Pointing Double Angle Quotation (`Β«`) - + ## `Β« π©`: Shift Before - + Remove the first element of `π©`, add a cell of fill values to the end of the first axis of `π©`. - + 78 Β« 1βΏ2βΏ3 Β« 1βΏ2βΏ3 Β« 3βΏ3 β₯ 9 - - + + ## `π¨ Β« π©`: Shift Before - + Remove the first `β π¨` (length) major cells from `π©`, join `π¨` to the end of `π©`. Ranks must match. - + 8βΏ5 Β« 1βΏ2βΏ3 a β 3βΏ3 β₯ 9 1βΏ2βΏ3 Β« a - - diff --git a/help/sign_multiply.md b/help/sign_multiply.md index d8ab406e..368a9bcd 100644 --- a/help/sign_multiply.md +++ b/help/sign_multiply.md @@ -1,28 +1,26 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/sign_multiply.html).* # Times (`Γ`) - -## `Γ π©`: Sign - + +## `Γ π©`: Sign + Sign of `π©`. - `Β―1` if `π© < 0` - `0` if `π© = 0` - `1` if `π© > 0` - + [Pervasive.](../doc/arithmetic.md#pervasion) - + Γ Β―5βΏ0βΏ5βΏ1 - - + + ## `π¨ Γ π©`: Multiply - + `π¨` multiplied by `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 Γ 2 2 Γ 2βΏ3βΏ4 - - diff --git a/help/sortdown_or.md b/help/sortdown_or.md index 690300ee..ea223873 100644 --- a/help/sortdown_or.md +++ b/help/sortdown_or.md @@ -1,25 +1,23 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/sortdown_or.html).* # Logical Or (`β¨`) - + ## `β¨ π©`: Sort Down - + Sort array `π©` in descending order. - + β¨ 3βΏ1βΏ4βΏ1βΏ5 - - + + ## `π¨ β¨ π©`: Logical Or - -Logical Or of `π¨` and `π©`. - + +Logical Or of `π¨` and `π©`. + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 β¨ 0 1βΏ0 β¨ 1βΏ1 0 β¨ 0 - - diff --git a/help/sortup_and.md b/help/sortup_and.md index 0a323116..e97481ab 100644 --- a/help/sortup_and.md +++ b/help/sortup_and.md @@ -1,23 +1,21 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/sortup_and.html).* # Logical And (`β§`) - + ## `β§ π©`: Sort Up - + Sort array `π©` in ascending order. - + β§ 3βΏ1βΏ4βΏ1βΏ5 - - + + ## `π¨ β§ π©`: Logical And - -Logical And of `π¨` and `π©`. - + +Logical And of `π¨` and `π©`. + [Pervasive.](../doc/arithmetic.md#pervasion) - + 1 β§ 1 1βΏ0 β§ 1βΏ1 - - diff --git a/help/squareroot_root.md b/help/squareroot_root.md index 04487c6c..1e7ca073 100644 --- a/help/squareroot_root.md +++ b/help/squareroot_root.md @@ -1,23 +1,21 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/squareroot_root.html).* # Root (`β`) - -## `β π©`: Square root - + +## `β π©`: Square root + [Pervasive.](../doc/arithmetic.md#pervasion) - + β 2 - - + + ## `π¨ β π©`: Root - + `π¨`th root of `π©`. - + [Pervasive.](../doc/arithmetic.md#pervasion) - - 2 β 2 - 1βΏ2βΏ3βΏ4 β 4 + 2 β 2 - + 1βΏ2βΏ3βΏ4 β 4 diff --git a/help/strand.md b/help/strand.md index 9866f79b..24e586e0 100644 --- a/help/strand.md +++ b/help/strand.md @@ -4,7 +4,7 @@ ## `βΏ`: Strand -Create a list via [strand notation](../doc/arrayrepr.md#strands). +Create a list via [strand notation](../doc/arrayrepr.md#strands). Placing `βΏ` between valid BQN expressions will create a list out of the end results of those expressions. @@ -12,5 +12,3 @@ Placing `βΏ` between valid BQN expressions will create a list out of the end re 1βΏ2βΏ3 +βΏ-βΏ56 - -
\ No newline at end of file diff --git a/help/suffixes_drop.md b/help/suffixes_drop.md index a513f8db..355e8484 100644 --- a/help/suffixes_drop.md +++ b/help/suffixes_drop.md @@ -1,25 +1,25 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/suffixes_drop.html).* # Down Arrow (`β`) - + ## `β π©`: Suffixes - + Suffixes of array `π©` along its first axis. - + β 1βΏ2βΏ3βΏ4 a β 3βΏ3 β₯ β9 β a - - + + ## `π¨ β π©`: Drop - + For each integer in `π¨`, drop that many elements from the beginning of each dimension of `π©`. - + Negative numbers drop from the end. - + 3 β 1βΏ3βΏ5βΏ67 b β 4βΏ4 β₯ β16 @@ -30,5 +30,3 @@ Negative numbers drop from the end. 3βΏΒ―3 β b - - diff --git a/help/table.md b/help/table.md index dd190660..09ce05e7 100644 --- a/help/table.md +++ b/help/table.md @@ -1,13 +1,11 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/table.html).* # Top Left Corner (`β`) - + ## `π¨ π½β π©`: Each - + Apply `π½` between every possible pair of the elements of the arguments. - + 1βΏ2βΏ3βΏ4 +β 4βΏ5βΏ6βΏ7 "abc" βΎβ "xyz" - - diff --git a/help/transpose_reorderaxes.md b/help/transpose_reorderaxes.md index 6e04582d..0d243f74 100644 --- a/help/transpose_reorderaxes.md +++ b/help/transpose_reorderaxes.md @@ -1,11 +1,11 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/transpose_reorderaxes.html).* # Circle Backslash (`β`) - -## `β π©`: Transpose - + +## `β π©`: Transpose + Move the first axis of `π©` to the end. - + a β 3βΏ3 β₯ β9 β a @@ -14,14 +14,12 @@ Move the first axis of `π©` to the end. β’β b - - + + ## `π¨ β π©`: Reorder Axes - + Rearrange the axes of `π©` as per the axis indices in `π¨`. - + β’ c β 2βΏ3βΏ4βΏ5βΏ6 β₯1 β’ 1βΏ3βΏ2βΏ0βΏ4 β c - - diff --git a/help/under.md b/help/under.md index e811216c..a9753f76 100644 --- a/help/under.md +++ b/help/under.md @@ -1,22 +1,20 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/under.html).* # Circle Jot (`βΎ`) - + ## `π½βΎπΎ π©`, `π¨ π½βΎπΎ π©`: Under - + - Apply transformation `πΎ` to all arguments - Apply `π½` to the transformed arguments - Undo transformation `πΎ` - -Where `πΎ` must be - + +Where `πΎ` must be + - A function invertible by `βΌ` (Undo) - A structural modification - + 9βΎ(1βΈβ) 1βΏ2βΏ3 ββΌ (β1) + (β9) 1 +βΎβ 9 - - diff --git a/help/undo.md b/help/undo.md index 0daa6469..6a68090c 100644 --- a/help/undo.md +++ b/help/undo.md @@ -1,12 +1,12 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/undo.html).* # Superscript Equals Sign (`βΌ`) - + ## `π½βΌ π©`, `π¨ π½βΌ π©`: Undo - + Invert the function `π½`, or use its defined inverse. Not all functions have inverses. - - + + 1 - 2 1 -βΌ 2 @@ -18,5 +18,3 @@ Invert the function `π½`, or use its defined inverse. Not all functions have i β 1 ββΌ 2.718281828459045 - - diff --git a/help/valences.md b/help/valences.md index e9ac866e..61466c79 100644 --- a/help/valences.md +++ b/help/valences.md @@ -1,23 +1,21 @@ *View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/valences.html).* # Circled Division Slash (`β`) - + ## `π½βπΎ π©`: Valences - + Apply `π½` to `π©`. - + +β- 5 -β+ 5 - - + + ## `π¨ π½βπΎ π©`: Dyadic Valences - + Apply `πΎ` to `π¨` and `π©`. - + 4 +β- 5 4 -β+ 5 - - |
