From c9bc3e80280fd8a38f6297de80196dcbff9c28d9 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 24 Jan 2022 17:06:40 -0500 Subject: Remove trailing whitespace from help/ markdown sources --- help/absolutevalue_modulus.md | 22 +++++++++--------- help/after_bind.md | 36 ++++++++++++++---------------- help/assert_assertwithmessage.md | 17 ++++++-------- help/atop.md | 20 ++++++++--------- help/before_bind.md | 32 +++++++++++++------------- help/beginblock.md | 2 +- help/beginexpression.md | 2 +- help/beginlist.md | 2 -- help/catch.md | 16 ++++++------- help/ceiling_maximum.md | 22 +++++++++--------- help/cells.md | 9 +++----- help/change.md | 2 +- help/choose.md | 8 +++---- help/classify_indexof.md | 23 +++++++++---------- help/comment.md | 2 +- help/conjugate_add.md | 14 +++++------- help/constant.md | 8 +++---- help/currentmodifier.md | 2 +- help/deduplicate_find.md | 18 +++++++-------- help/define.md | 2 +- help/depth.md | 10 ++++----- help/depth_match.md | 16 ++++++------- help/deshape_reshape.md | 28 +++++++++++------------ help/each.md | 8 +++---- help/endblock.md | 2 +- help/endexpression.md | 2 +- help/endlist.md | 2 -- help/enlist_pair.md | 18 +++++++-------- help/exponential_power.md | 22 +++++++++--------- help/export.md | 2 +- help/first_pick.md | 16 ++++++------- help/firstcell_select.md | 16 ++++++------- help/floor_minimum.md | 22 +++++++++--------- help/fold.md | 12 +++++----- help/gradedown_binsdown.md | 22 +++++++++--------- help/gradeup_binsup.md | 22 +++++++++--------- help/greaterthanorequalto.md | 10 ++++----- help/groupindices_group.md | 24 +++++++++----------- help/identity_left.md | 16 ++++++------- help/identity_right.md | 16 ++++++------- help/indices_replicate.md | 18 +++++++-------- help/infinity.md | 2 +- help/insert.md | 18 ++++++--------- help/join_jointo.md | 22 +++++++++--------- help/leftargument.md | 2 +- help/length_notequals.md | 18 +++++++-------- help/lessthanorequalto.md | 10 ++++----- help/markfirst_memberof.md | 16 ++++++------- help/merge_greaterthan.md | 28 +++++++++++------------ help/minus.md | 2 +- help/negate_subtract.md | 18 +++++++-------- help/not_span.md | 22 +++++++++--------- help/nothing.md | 2 -- help/nullcharacter.md | 2 +- help/occurrencecount_progressiveindexof.md | 16 ++++++------- help/over.md | 20 ++++++++--------- help/pi.md | 2 +- help/prefixes_take.md | 20 ++++++++--------- help/range_windows.md | 20 ++++++++--------- help/rank.md | 14 +++++------- help/rank_equals.md | 18 +++++++-------- help/reciprocal_divide.md | 21 ++++++++--------- help/repeat.md | 10 ++++----- help/reverse_rotate.md | 18 +++++++-------- help/rightargument.md | 2 +- help/scan.md | 16 ++++++------- help/self_swap.md | 16 ++++++------- help/separator.md | 2 +- help/separator1.md | 2 +- help/shape_notmatch.md | 16 ++++++------- help/shiftafter.md | 16 ++++++------- help/shiftbefore.md | 16 ++++++------- help/sign_multiply.md | 22 +++++++++--------- help/sortdown_or.md | 20 ++++++++--------- help/sortup_and.md | 20 ++++++++--------- help/squareroot_root.md | 22 +++++++++--------- help/strand.md | 4 +--- help/suffixes_drop.md | 18 +++++++-------- help/table.md | 8 +++---- help/transpose_reorderaxes.md | 18 +++++++-------- help/under.md | 14 +++++------- help/undo.md | 10 ++++----- help/valences.md | 16 ++++++------- 83 files changed, 502 insertions(+), 640 deletions(-) (limited to 'help') 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) - - diff --git a/help/pi.md b/help/pi.md index 0787e7ee..f023cebb 100644 --- a/help/pi.md +++ b/help/pi.md @@ -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 - - -- cgit v1.2.3