diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-02-05 18:00:29 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-02-05 18:00:29 -0500 |
| commit | 776bdd6ec954a123b22df1f4de06bdd6c3edd18c (patch) | |
| tree | a7733c1522fa58485a66872206e4150f3bb9d612 /commentary/problems.md | |
| parent | 4c95f1b8a83993eda4545a2c81806b1b14f37053 (diff) | |
Doing TAO comparisons gets easier with Enlist
Diffstat (limited to 'commentary/problems.md')
| -rw-r--r-- | commentary/problems.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commentary/problems.md b/commentary/problems.md index 4167ba27..e7a09450 100644 --- a/commentary/problems.md +++ b/commentary/problems.md @@ -38,9 +38,6 @@ This includes index-of-last, and searching starting at a particular index, when ### Subtraction, division, and span are backwards The left argument feels much more like the primary one in these cases (indeed, this matches the typical left-to-right ordering of binary operators in mathematics). The commonly-paired `⌊∘÷` and `|` have opposite orders for this reason. Not really fixable; too much precedent. -### Can't access array ordering directly -Only `⍋⍒` use array ordering rather than just array equality or numeric ordering. Getting at the actual ordering to just compare two arrays is more difficult than it should be (but not *that* difficult: `⥊⊸⍋⌾<` is TAO `≤`). - ### Nothing (`·`) interacts strangely with Before and After Since `𝕨F⊸G𝕩` is `(F𝕨)G𝕩` and `𝕨F⟜G𝕩` is `𝕨F G𝕩` in the dyadic case, we might expect these to devolve to `G𝕩` and `F G𝕩` when `𝕨` is not present. Not so: instead `𝕩` is substituted for the missing `𝕨`. And Before and After are also the main places where a programmer might try to use `𝕨` as an operand, which doesn't work either (the right way is the train `𝕨F⊢`). It's also a little strange that `v F˜·` is `·`, while `·F v` is `F v`. @@ -73,6 +70,9 @@ APL has it and BQN doesn't; after some experience it seems this causes few probl ### Index Of privileges the first match It could be more sound to look at all matches, but using just the first one is too convenient. J has an index-of-last function; in BQN you have to reverse the left argument and then do arithmetic: `≠∘⊣-1+⌽⊸⊐`. +### Can't access array ordering directly +Only `⍋⍒` use array ordering rather than just array equality or numeric ordering. Getting at the actual ordering to just compare two arrays is not hard but also not obvious: `⍋⌾⋈` is TAO `≤`. + ### Glyphs that aren't great Blanket issue for unintuitive glyphs. Currently I find `⥊⊏⊑⊐⊒⍷⁼⎉⚇` to not be particularly good fits for what they describe. |
