From 8c2607133c1147eee5588738c9b05467b799b127 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 19 Jan 2022 16:06:15 -0500 Subject: Align filenames with repl.js descriptions --- help/abs_modulus.md | 27 ------------------- help/absolutevalue_modulus.md | 27 +++++++++++++++++++ help/after_bind.md | 43 ++++++++++++++++++++++++++++++ help/after_bindright.md | 43 ------------------------------ help/assert_assertwithmessage.md | 29 ++++++++++++++++++++ help/assert_assertwithmsg.md | 29 -------------------- help/before_bind.md | 43 ++++++++++++++++++++++++++++++ help/before_bindleft.md | 43 ------------------------------ help/enclose_less.md | 27 ------------------- help/enclose_lessthan.md | 27 +++++++++++++++++++ help/greatequal.md | 15 ----------- help/greaterthanorequalto.md | 15 +++++++++++ help/length_notequal.md | 32 ---------------------- help/length_notequals.md | 32 ++++++++++++++++++++++ help/lessequal.md | 15 ----------- help/lessthanorequalto.md | 15 +++++++++++ help/merge_great.md | 37 ------------------------- help/merge_greaterthan.md | 37 +++++++++++++++++++++++++ help/occcount_progindex.md | 23 ---------------- help/occurrencecount_progressiveindexof.md | 23 ++++++++++++++++ help/rank_equal.md | 30 --------------------- help/rank_equals.md | 30 +++++++++++++++++++++ help/transpose_dyadtranspose.md | 27 ------------------- help/transpose_reorderaxes.md | 27 +++++++++++++++++++ 24 files changed, 348 insertions(+), 348 deletions(-) delete mode 100644 help/abs_modulus.md create mode 100644 help/absolutevalue_modulus.md create mode 100644 help/after_bind.md delete mode 100644 help/after_bindright.md create mode 100644 help/assert_assertwithmessage.md delete mode 100644 help/assert_assertwithmsg.md create mode 100644 help/before_bind.md delete mode 100644 help/before_bindleft.md delete mode 100644 help/enclose_less.md create mode 100644 help/enclose_lessthan.md delete mode 100644 help/greatequal.md create mode 100644 help/greaterthanorequalto.md delete mode 100644 help/length_notequal.md create mode 100644 help/length_notequals.md delete mode 100644 help/lessequal.md create mode 100644 help/lessthanorequalto.md delete mode 100644 help/merge_great.md create mode 100644 help/merge_greaterthan.md delete mode 100644 help/occcount_progindex.md create mode 100644 help/occurrencecount_progressiveindexof.md delete mode 100644 help/rank_equal.md create mode 100644 help/rank_equals.md delete mode 100644 help/transpose_dyadtranspose.md create mode 100644 help/transpose_reorderaxes.md (limited to 'help') diff --git a/help/abs_modulus.md b/help/abs_modulus.md deleted file mode 100644 index 1e015d37..00000000 --- a/help/abs_modulus.md +++ /dev/null @@ -1,27 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/abs_modulus.html).* - -# Pipe (`|`) - -## `| 𝕩`: Absolute Value - -Absolute Value of `𝕩`. - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - | Β―2 - - | 1β€Ώ3β€ΏΒ―4β€Ώ3 - - - -## `𝕨 | 𝕩`: Modulus - -Remainder of `𝕩` divided by `𝕨`. - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - 1 | 3 - - 2 | 3β€Ώ4β€Ώ5 - - diff --git a/help/absolutevalue_modulus.md b/help/absolutevalue_modulus.md new file mode 100644 index 00000000..87566598 --- /dev/null +++ b/help/absolutevalue_modulus.md @@ -0,0 +1,27 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/absolutevalue_modulus.html).* + +# Pipe (`|`) + +## `| 𝕩`: Absolute Value + +Absolute Value of `𝕩`. + +[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + | Β―2 + + | 1β€Ώ3β€ΏΒ―4β€Ώ3 + + + +## `𝕨 | 𝕩`: Modulus + +Remainder of `𝕩` divided by `𝕨`. + +[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + 1 | 3 + + 2 | 3β€Ώ4β€Ώ5 + + diff --git a/help/after_bind.md b/help/after_bind.md new file mode 100644 index 00000000..5163d4f9 --- /dev/null +++ b/help/after_bind.md @@ -0,0 +1,43 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/after_bind.html).* + +# Left Multimap (`⟜`) + +## `π”½βŸœπ•˜ 𝕩`: Bind + +Supply `π•˜` as a right argument to `𝔽` (`𝕩 𝔽 π•˜`). + +## `π•˜` must be a value, `F` must be dyadic. + + -⟜3 9 + + - 3 9 + + 9 - 3 + + + +## `π”½βŸœπ”Ύ 𝕩`: After + +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 `𝔽` (`𝕨 𝔽 (𝔾 𝕩)`). + +`𝔽` must be dyadic, `𝔾` must be monadic. + + 2 Γ—βŸœ- 1 + + 2 Γ— (- 1) + + diff --git a/help/after_bindright.md b/help/after_bindright.md deleted file mode 100644 index e8cb2bcb..00000000 --- a/help/after_bindright.md +++ /dev/null @@ -1,43 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/after_bindright.html).* - -# Left Multimap (`⟜`) - -## `π”½βŸœπ•˜ 𝕩`: Bind - -Supply `π•˜` as a right argument to `𝔽` (`𝕩 𝔽 π•˜`). - -## `π•˜` must be a value, `F` must be dyadic. - - -⟜3 9 - - - 3 9 - - 9 - 3 - - - -## `π”½βŸœπ”Ύ 𝕩`: After - -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 `𝔽` (`𝕨 𝔽 (𝔾 𝕩)`). - -`𝔽` must be dyadic, `𝔾` must be monadic. - - 2 Γ—βŸœ- 1 - - 2 Γ— (- 1) - - diff --git a/help/assert_assertwithmessage.md b/help/assert_assertwithmessage.md new file mode 100644 index 00000000..fc90b367 --- /dev/null +++ b/help/assert_assertwithmessage.md @@ -0,0 +1,29 @@ +*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 + + ! "hello" + + + + +## `𝕨 ! 𝕩`: Dyad + +Throw an error with message `𝕨` if `𝕩` is not 1. + + "hi" ! 1 + + "two" ! 2 + + "hello error" ! "hello" + + + diff --git a/help/assert_assertwithmsg.md b/help/assert_assertwithmsg.md deleted file mode 100644 index 4a7e26cf..00000000 --- a/help/assert_assertwithmsg.md +++ /dev/null @@ -1,29 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/assert_assertwithmsg.html).* - -# Exclamation Mark (`!`) - -## `! 𝕩`: Assert - -Throw an error if `𝕩` is not 1. - - ! 1 - - ! 2 - - ! "hello" - - - - -## `𝕨 ! 𝕩`: Dyad - -Throw an error with message `𝕨` if `𝕩` is not 1. - - "hi" ! 1 - - "two" ! 2 - - "hello error" ! "hello" - - - diff --git a/help/before_bind.md b/help/before_bind.md new file mode 100644 index 00000000..290e8fe9 --- /dev/null +++ b/help/before_bind.md @@ -0,0 +1,43 @@ +*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 `𝔾` (`𝕗 𝔾 𝕩`). + +## `𝕗` must be a value, `𝔾` must be dyadic. + + 3⊸- 9 + + 3 - 9 + + + +## `π”½βŠΈπ”Ύ 𝕩`: Before + +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/before_bindleft.md b/help/before_bindleft.md deleted file mode 100644 index eeeb1fcf..00000000 --- a/help/before_bindleft.md +++ /dev/null @@ -1,43 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/before_bindleft.html).* - -# Multimap (`⊸`) - -## `π•—βŠΈπ”Ύ 𝕩`: Bind Left - -Supply `𝕗` as a left argument to `𝔾` (`𝕗 𝔾 𝕩`). - -## `𝕗` must be a value, `𝔾` must be dyadic. - - 3⊸- 9 - - 3 - 9 - - - -## `π”½βŠΈπ”Ύ 𝕩`: Before - -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/enclose_less.md b/help/enclose_less.md deleted file mode 100644 index 1f743fd9..00000000 --- a/help/enclose_less.md +++ /dev/null @@ -1,27 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/enclose_less.html).* - -# Lesser Than (`<`) - -## `< 𝕩`: Enclose - -Create a unit array containing `𝕩`. (`(≒𝕩) ≑ ⟨⟩`) - - - <1 - - - β‰’<1 - - - -## `𝕨 < 𝕩`: Lesser Than - -`𝕨` and `𝕩` can both be either numbers or characters. - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - 1 < 3 - - 2β€Ώ3β€Ώ0 < 3β€Ώ1β€Ώ0 - - diff --git a/help/enclose_lessthan.md b/help/enclose_lessthan.md new file mode 100644 index 00000000..668318cd --- /dev/null +++ b/help/enclose_lessthan.md @@ -0,0 +1,27 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/enclose_lessthan.html).* + +# Lesser Than (`<`) + +## `< 𝕩`: Enclose + +Create a unit array containing `𝕩`. (`(≒𝕩) ≑ ⟨⟩`) + + + <1 + + + β‰’<1 + + + +## `𝕨 < 𝕩`: Lesser Than + +`𝕨` and `𝕩` can both be either numbers or characters. + +[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + 1 < 3 + + 2β€Ώ3β€Ώ0 < 3β€Ώ1β€Ώ0 + + diff --git a/help/greatequal.md b/help/greatequal.md deleted file mode 100644 index 1772cbaf..00000000 --- a/help/greatequal.md +++ /dev/null @@ -1,15 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/greatequal.html).* - -# Greater Than or Equal To (`β‰₯`) - -## `𝕨 β‰₯ 𝕩`: Greater Than or Equal To - -`𝕨` and `𝕩` can both be either numbers or characters. - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - 1 β‰₯ 3 - - 2β€Ώ3β€Ώ0 β‰₯ 3β€Ώ1β€Ώ0 - - diff --git a/help/greaterthanorequalto.md b/help/greaterthanorequalto.md new file mode 100644 index 00000000..941087cd --- /dev/null +++ b/help/greaterthanorequalto.md @@ -0,0 +1,15 @@ +*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.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + 1 β‰₯ 3 + + 2β€Ώ3β€Ώ0 β‰₯ 3β€Ώ1β€Ώ0 + + diff --git a/help/length_notequal.md b/help/length_notequal.md deleted file mode 100644 index 057247c9..00000000 --- a/help/length_notequal.md +++ /dev/null @@ -1,32 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/length_notequal.html).* - -# Not Equal (`β‰ `) - -## `β‰  𝕩`: Length - -Length of the first dimension of `𝕩`. - - - β‰  3 - - β‰  ⟨1, 2, 3⟩ - - β‰  3β€Ώ4β€Ώ5β₯Š0 - - β‰  1β€Ώ4β€Ώ5β₯Š0 - - β‰  4β€Ώ4β€Ώ5β₯Š0 - - - -## `𝕨 β‰  𝕩`: Not Equal To - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - 1 β‰  3 - - 2β€Ώ3β€Ώ0 β‰  3β€Ώ1β€Ώ0 - - 'a' β‰  'a' - - diff --git a/help/length_notequals.md b/help/length_notequals.md new file mode 100644 index 00000000..75cffd78 --- /dev/null +++ b/help/length_notequals.md @@ -0,0 +1,32 @@ +*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⟩ + + β‰  3β€Ώ4β€Ώ5β₯Š0 + + β‰  1β€Ώ4β€Ώ5β₯Š0 + + β‰  4β€Ώ4β€Ώ5β₯Š0 + + + +## `𝕨 β‰  𝕩`: Not Equal To + +[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + 1 β‰  3 + + 2β€Ώ3β€Ώ0 β‰  3β€Ώ1β€Ώ0 + + 'a' β‰  'a' + + diff --git a/help/lessequal.md b/help/lessequal.md deleted file mode 100644 index 8fc0000b..00000000 --- a/help/lessequal.md +++ /dev/null @@ -1,15 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/lessequal.html).* - -# Lesser Than or Equal To (`≀`) - -## `𝕨 ≀ 𝕩`: Lesser Than or Equal To - -`𝕨` and `𝕩` can both be either numbers or characters. - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - 1 ≀ 3 - - 2β€Ώ3β€Ώ0 ≀ 3β€Ώ1β€Ώ0 - - diff --git a/help/lessthanorequalto.md b/help/lessthanorequalto.md new file mode 100644 index 00000000..6d11fd5c --- /dev/null +++ b/help/lessthanorequalto.md @@ -0,0 +1,15 @@ +*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.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + 1 ≀ 3 + + 2β€Ώ3β€Ώ0 ≀ 3β€Ώ1β€Ώ0 + + diff --git a/help/merge_great.md b/help/merge_great.md deleted file mode 100644 index c91b3b8b..00000000 --- a/help/merge_great.md +++ /dev/null @@ -1,37 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/merge_great.html).* - -# Greater Than (`>`) - -## `> 𝕩`: 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 - - β‰’a - - β‰’>a - - - - -## `𝕨 > 𝕩`: Greater Than - -`𝕨` and `𝕩` can both be either numbers or characters. - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - 1 > 3 - - 2β€Ώ3β€Ώ0 > 3β€Ώ1β€Ώ0 - - 'a' > 'b' - - diff --git a/help/merge_greaterthan.md b/help/merge_greaterthan.md new file mode 100644 index 00000000..23878afd --- /dev/null +++ b/help/merge_greaterthan.md @@ -0,0 +1,37 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/merge_greaterthan.html).* + +# Greater Than (`>`) + +## `> 𝕩`: 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 + + β‰’a + + β‰’>a + + + + +## `𝕨 > 𝕩`: Greater Than + +`𝕨` and `𝕩` can both be either numbers or characters. + +[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + 1 > 3 + + 2β€Ώ3β€Ώ0 > 3β€Ώ1β€Ώ0 + + 'a' > 'b' + + diff --git a/help/occcount_progindex.md b/help/occcount_progindex.md deleted file mode 100644 index 649869c8..00000000 --- a/help/occcount_progindex.md +++ /dev/null @@ -1,23 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/occcount_progindex.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/occurrencecount_progressiveindexof.md b/help/occurrencecount_progressiveindexof.md new file mode 100644 index 00000000..ba1026e5 --- /dev/null +++ b/help/occurrencecount_progressiveindexof.md @@ -0,0 +1,23 @@ +*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/rank_equal.md b/help/rank_equal.md deleted file mode 100644 index 1663df7d..00000000 --- a/help/rank_equal.md +++ /dev/null @@ -1,30 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/rank_equal.html).* - -# Equal (`=`) - -## `= 𝕩`: Rank - -Returns the number of dimensions in `𝕩`. - - - = 0 - - = 3β₯Š0 - - = 3β€Ώ3β₯Š0 - - 3β€Ώ3β€Ώ3 β₯Š ⟨⟨0⟩⟩ - - - -## `𝕨 = 𝕩`: Equal To - -[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) - - 1 = 3 - - 2β€Ώ3β€Ώ0 = 3β€Ώ1β€Ώ0 - - 'a' = 'a' - - diff --git a/help/rank_equals.md b/help/rank_equals.md new file mode 100644 index 00000000..9a451009 --- /dev/null +++ b/help/rank_equals.md @@ -0,0 +1,30 @@ +*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 + + = 3β€Ώ3β₯Š0 + + 3β€Ώ3β€Ώ3 β₯Š ⟨⟨0⟩⟩ + + + +## `𝕨 = 𝕩`: Equal To + +[Pervasive.](https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion) + + 1 = 3 + + 2β€Ώ3β€Ώ0 = 3β€Ώ1β€Ώ0 + + 'a' = 'a' + + diff --git a/help/transpose_dyadtranspose.md b/help/transpose_dyadtranspose.md deleted file mode 100644 index d3db90ab..00000000 --- a/help/transpose_dyadtranspose.md +++ /dev/null @@ -1,27 +0,0 @@ -*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/transpose_dyadtranspose.html).* - -# Circle Backslash (`⍉`) - -## `⍉ 𝕩`: Transpose - -Move the first axis of `𝕩` to the end. - - a ← 3β€Ώ3 β₯Š ↕9 - - ⍉ a - - b ← 1β€Ώ2β€Ώ3 β₯Š ↕6 - - ≒⍉ b - - - -## `𝕨 ⍉ 𝕩`: Dyad - -Rearrange the axes of `𝕩` as per the axis indices in `𝕨`. - - β‰’ a ← 2β€Ώ3β€Ώ4β€Ώ5β€Ώ6 β₯Š1 - - β‰’ 1β€Ώ3β€Ώ2β€Ώ0β€Ώ4 ⍉ a - - diff --git a/help/transpose_reorderaxes.md b/help/transpose_reorderaxes.md new file mode 100644 index 00000000..244fc444 --- /dev/null +++ b/help/transpose_reorderaxes.md @@ -0,0 +1,27 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/transpose_reorderaxes.html).* + +# Circle Backslash (`⍉`) + +## `⍉ 𝕩`: Transpose + +Move the first axis of `𝕩` to the end. + + a ← 3β€Ώ3 β₯Š ↕9 + + ⍉ a + + b ← 1β€Ώ2β€Ώ3 β₯Š ↕6 + + ≒⍉ b + + + +## `𝕨 ⍉ 𝕩`: Dyad + +Rearrange the axes of `𝕩` as per the axis indices in `𝕨`. + + β‰’ a ← 2β€Ώ3β€Ώ4β€Ώ5β€Ώ6 β₯Š1 + + β‰’ 1β€Ώ3β€Ώ2β€Ώ0β€Ώ4 ⍉ a + + -- cgit v1.2.3