aboutsummaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-29 18:01:40 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-29 18:03:10 -0500
commit1a1f4a5a54494f91a91c6cc85558d5f1e62e5ca9 (patch)
treebf70c32255c8f81405e8dfd1b64bc16749f1e8e7 /help
parent224d6ed83efb86fa16ac802af65c63d1b97543e2 (diff)
Order help index table like keymap
Diffstat (limited to 'help')
-rw-r--r--help/README.md156
-rwxr-xr-xhelp/genhelp.bqn10
2 files changed, 82 insertions, 84 deletions
diff --git a/help/README.md b/help/README.md
index 011d7459..16a194e7 100644
--- a/help/README.md
+++ b/help/README.md
@@ -2,99 +2,97 @@
# REPL Help
-Symbols are listed in alphabetical order of page name, ignoring syntactical roles.
-
| Symbol | Link |
|--------|------|
-| `𝔾` | [2-Modifier Right operand](2-modifierrightoperand.md) |
-| `\|` | [Absolute Value, Modulus](absolutevalue_modulus.md) |
-| `⟜` | [Bind, After, Dyadic After](after_bind.md) |
-| `!` | [Assert, Assert With Message](assert_assertwithmessage.md) |
-| `∘` | [Atop, Dyadic Atop](atop.md) |
-| `⊸` | [Bind Left, Before, Dyadic Before](before_bind.md) |
-| `{` | [Begin Block](beginblock.md) |
-| `(` | [Begin Expression](beginexpression.md) |
-| `⟨` | [Begin list](beginlist.md) |
-| `⎊` | [Catch](catch.md) |
-| `⌈` | [Ceiling, Maximum](ceiling_maximum.md) |
-| `˘` | [Cells](cells.md) |
-| `↩` | [Change](change.md) |
-| `β—Ά` | [Choose](choose.md) |
-| `⊐` | [Classify, Index Of](classify_indexof.md) |
-| `#` | [Comment](comment.md) |
| `+` | [Conjugate, Add](conjugate_add.md) |
-| `Λ™` | [Constant](constant.md) |
-| `π•Š` | [Current Function](currentfunction.md) |
-| `𝕣` | [Current Modifier](currentmodifier.md) |
-| `⍷` | [Deduplicate, Find](deduplicate_find.md) |
-| `←` | [Define](define.md) |
-| `≑` | [Depth, Match](depth_match.md) |
-| `βš‡` | [Depth](depth.md) |
-| `β₯Š` | [Deshape, Reshape](deshape_reshape.md) |
-| `Β¨` | [Each](each.md) |
-| `<` | [Enclose, Lesser Than](enclose_lessthan.md) |
-| `}` | [End Block](endblock.md) |
-| `)` | [End Expression](endexpression.md) |
-| `⟩` | [End list](endlist.md) |
-| `β‹ˆ` | [Enlist, Pair](enlist_pair.md) |
+| `-` | [Negate, Subtract](negate_subtract.md) |
+| `Γ—` | [Sign, Multiply](sign_multiply.md) |
+| `Γ·` | [Reciprocal, Divide](reciprocal_divide.md) |
| `⋆` | [Exponential, Power](exponential_power.md) |
-| `⇐` | [Export Definition, Export names](export.md) |
-| `⊏` | [First Cell, Select](firstcell_select.md) |
-| `βŠ‘` | [First, Pick](first_pick.md) |
+| `√` | [Square root, Root](squareroot_root.md) |
| `⌊` | [Floor, Minimum](floor_minimum.md) |
-| `Β΄` | [Fold, Fold With Initial](fold.md) |
-| `⍒` | [Grade Down, Bins Down](gradedown_binsdown.md) |
-| `⍋` | [Grade Up, Bins Up](gradeup_binsup.md) |
+| `⌈` | [Ceiling, Maximum](ceiling_maximum.md) |
+| `∧` | [Sort Up, Logical And](sortup_and.md) |
+| `∨` | [Sort Down, Logical Or](sortdown_or.md) |
+| `Β¬` | [Logical Not, Span](not_span.md) |
+| `\|` | [Absolute Value, Modulus](absolutevalue_modulus.md) |
+| `≀` | [Lesser Than or Equal To](lessthanorequalto.md) |
+| `<` | [Enclose, Lesser Than](enclose_lessthan.md) |
+| `>` | [Merge, Greater Than](merge_greaterthan.md) |
| `β‰₯` | [Greater Than or Equal To](greaterthanorequalto.md) |
-| `βŠ”` | [Group Indices, Group](groupindices_group.md) |
-| `:` | [Header](header.md) |
+| `=` | [Rank, Equal To](rank_equals.md) |
+| `β‰ ` | [Length, Not Equal To](length_notequals.md) |
+| `≑` | [Depth, Match](depth_match.md) |
+| `β‰’` | [Shape, Not Match](shape_notmatch.md) |
| `⊣` | [Identity, Left](identity_left.md) |
| `⊒` | [Identity, Right](identity_right.md) |
-| `/` | [Indices, Replicate](indices_replicate.md) |
-| `∞` | [Infinity](infinity.md) |
-| `˝` | [Insert, Insert With Initial](insert.md) |
+| `β₯Š` | [Deshape, Reshape](deshape_reshape.md) |
| `∾` | [Join, Join To](join_jointo.md) |
-| `𝕨` | [Left Argument](leftargument.md) |
-| `β‰ ` | [Length, Not Equal To](length_notequals.md) |
-| `≀` | [Lesser Than or Equal To](lessthanorequalto.md) |
-| `∊` | [Mark Firsts, Member Of](markfirst_memberof.md) |
-| `>` | [Merge, Greater Than](merge_greaterthan.md) |
-| `Β―` | [Minus](minus.md) |
-| `𝔽` | [Modifier Left operand](modifierleftoperand.md) |
-| `.` | [Namespace Field](namespacefield.md) |
-| `-` | [Negate, Subtract](negate_subtract.md) |
-| `;` | [Next Body](nextbody.md) |
-| `Β·` | [Nothing](nothing.md) |
-| `Β¬` | [Logical Not, Span](not_span.md) |
-| `@` | [Null Character](nullcharacter.md) |
-| `βŠ’` | [Occurrence Count, Progressive Index Of](occurrencecount_progressiveindexof.md) |
-| `β—‹` | [Atop, Over](over.md) |
-| `Ο€` | [Pi](pi.md) |
-| `?` | [Predicate](predicate.md) |
+| `≍` | [Solo, Couple](solo_couple.md) |
+| `β‹ˆ` | [Enlist, Pair](enlist_pair.md) |
| `↑` | [Prefixes, Take](prefixes_take.md) |
+| `↓` | [Suffixes, Drop](suffixes_drop.md) |
| `↕` | [Range, Windows](range_windows.md) |
-| `=` | [Rank, Equal To](rank_equals.md) |
+| `Β«` | [Shift Before, Shift Before](shiftbefore.md) |
+| `Β»` | [Shift After, Shift After](shiftafter.md) |
+| `⌽` | [Reverse, Rotate](reverse_rotate.md) |
+| `⍉` | [Transpose, Reorder Axes](transpose_reorderaxes.md) |
+| `/` | [Indices, Replicate](indices_replicate.md) |
+| `⍋` | [Grade Up, Bins Up](gradeup_binsup.md) |
+| `⍒` | [Grade Down, Bins Down](gradedown_binsdown.md) |
+| `⊏` | [First Cell, Select](firstcell_select.md) |
+| `βŠ‘` | [First, Pick](first_pick.md) |
+| `⊐` | [Classify, Index Of](classify_indexof.md) |
+| `βŠ’` | [Occurrence Count, Progressive Index Of](occurrencecount_progressiveindexof.md) |
+| `∊` | [Mark Firsts, Member Of](markfirst_memberof.md) |
+| `⍷` | [Deduplicate, Find](deduplicate_find.md) |
+| `βŠ”` | [Group Indices, Group](groupindices_group.md) |
+| `!` | [Assert, Assert With Message](assert_assertwithmessage.md) |
+| `Λ™` | [Constant](constant.md) |
+| `˜` | [Self, Swap](self_swap.md) |
+| `∘` | [Atop, Dyadic Atop](atop.md) |
+| `β—‹` | [Atop, Over](over.md) |
+| `⊸` | [Bind Left, Before, Dyadic Before](before_bind.md) |
+| `⟜` | [Bind, After, Dyadic After](after_bind.md) |
+| `⌾` | [Under](under.md) |
+| `⊘` | [Valences, Dyadic Valences](valences.md) |
+| `β—Ά` | [Choose](choose.md) |
+| `⎊` | [Catch](catch.md) |
| `βŽ‰` | [Rank](rank.md) |
-| `Γ·` | [Reciprocal, Divide](reciprocal_divide.md) |
+| `˘` | [Cells](cells.md) |
+| `βš‡` | [Depth](depth.md) |
+| `Β¨` | [Each](each.md) |
+| `⌜` | [Table](table.md) |
| `⍟` | [Repeat](repeat.md) |
-| `⌽` | [Reverse, Rotate](reverse_rotate.md) |
-| `𝕩` | [Right Argument](rightargument.md) |
+| `⁼` | [Undo](undo.md) |
+| `Β΄` | [Fold, Fold With Initial](fold.md) |
+| `˝` | [Insert, Insert With Initial](insert.md) |
| `` ` `` | [Scan, Scan With initial](scan.md) |
-| `˜` | [Self, Swap](self_swap.md) |
+| `←` | [Define](define.md) |
+| `⇐` | [Export Definition, Export names](export.md) |
+| `↩` | [Change](change.md) |
| `,` or `β‹„` | [Separator](separator.md) |
-| `β‰’` | [Shape, Not Match](shape_notmatch.md) |
-| `Β»` | [Shift After, Shift After](shiftafter.md) |
-| `Β«` | [Shift Before, Shift Before](shiftbefore.md) |
-| `Γ—` | [Sign, Multiply](sign_multiply.md) |
-| `≍` | [Solo, Couple](solo_couple.md) |
-| `∨` | [Sort Down, Logical Or](sortdown_or.md) |
-| `∧` | [Sort Up, Logical And](sortup_and.md) |
-| `√` | [Square root, Root](squareroot_root.md) |
+| `.` | [Namespace Field](namespacefield.md) |
+| `(` | [Begin Expression](beginexpression.md) |
+| `)` | [End Expression](endexpression.md) |
+| `{` | [Begin Block](beginblock.md) |
+| `}` | [End Block](endblock.md) |
+| `;` | [Next Body](nextbody.md) |
+| `:` | [Header](header.md) |
+| `?` | [Predicate](predicate.md) |
+| `⟨` | [Begin list](beginlist.md) |
+| `⟩` | [End list](endlist.md) |
| `β€Ώ` | [Strand](strand.md) |
-| `↓` | [Suffixes, Drop](suffixes_drop.md) |
+| `Β·` | [Nothing](nothing.md) |
| `β€’` | [System](system.md) |
-| `⌜` | [Table](table.md) |
-| `⍉` | [Transpose, Reorder Axes](transpose_reorderaxes.md) |
-| `⌾` | [Under](under.md) |
-| `⁼` | [Undo](undo.md) |
-| `⊘` | [Valences, Dyadic Valences](valences.md) |
+| `𝕨` | [Left Argument](leftargument.md) |
+| `𝕩` | [Right Argument](rightargument.md) |
+| `𝔽` | [Modifier Left operand](modifierleftoperand.md) |
+| `𝔾` | [2-Modifier Right operand](2-modifierrightoperand.md) |
+| `π•Š` | [Current Function](currentfunction.md) |
+| `𝕣` | [Current Modifier](currentmodifier.md) |
+| `Β―` | [Minus](minus.md) |
+| `Ο€` | [Pi](pi.md) |
+| `∞` | [Infinity](infinity.md) |
+| `@` | [Null Character](nullcharacter.md) |
+| `#` | [Comment](comment.md) |
diff --git a/help/genhelp.bqn b/help/genhelp.bqn
index 4bf27e09..71251d01 100755
--- a/help/genhelp.bqn
+++ b/help/genhelp.bqn
@@ -1,15 +1,17 @@
#!/usr/bin/env bqn
files ← "README.md"βŠΈβ‰’Β¨βŠΈ/ (⍋(¬∊⟜"_.")⊸/Β¨)⊸⊏ ".md"⊸(-βˆ˜β‰ βŠΈβ†‘β‰‘βŠ£)¨⊸/ β€’file.List ""
+gl ← "+-Γ—Γ·β‹†βˆšβŒŠβŒˆβˆ§βˆ¨Β¬|≀<>β‰₯=β‰ β‰‘β‰’βŠ£βŠ’β₯ŠβˆΎβ‰β‹ˆβ†‘β†“β†•Β«Β»βŒ½β‰/β‹β’βŠβŠ‘βŠβŠ’βˆŠβ·βŠ”!Λ™Λœβˆ˜β—‹βŠΈβŸœβŒΎβŠ˜β—ΆβŽŠβŽ‰Λ˜βš‡Β¨βŒœβŸβΌΒ΄Λ`←⇐↩⋄,.(){};:?βŸ¨βŸ©β€ΏΒ·β€’π•¨π•Žπ•©π•π•—π”½π•˜π”Ύπ•€π•Šπ•£Β―Ο€βˆž@#"
-thing ← {
+rows ← (⍋gl⊸⊐)βŠΈβŠΛβ‰> {
data ← β€’FLines 𝕩
names ← (⊣∾", "∾⊒)Β΄{(¬·∧`' '⊸=)⊸/⌾⌽(»·∧`⌾⌽':'βŠΈβ‰ )⊸/𝕩}Β¨("## "≑3βŠΈβ†‘)¨⊸/data
tβ€Ώd ← ∾/Β¨(⊏data)=Β¨"()"
sym ← (+`·»⊸-˝(¬»∧«)∘=⟜'`'βˆ§βŽ‰1"()"=⌜⊒)⊸/ 2βŠ‘data
+ g ← 1βŠ‘sym
sym (1+'|'⊸=)⊸(/+(-Β΄"\|")Γ—{Β«βŠ’/𝕨})↩
sym "`,` or `β‹„`"⍟("`,``β‹„`"βŠΈβ‰‘)↩
- "| " ∾ sym ∾ " | [" ∾ names ∾ "]("βˆΎπ•©βˆΎ ") |"
+ ⟨g, ∾"| "β€Ώsymβ€Ώ" | ["β€Ώnamesβ€Ώ"]("‿𝕩‿") |"⟩
}Β¨ files
head ← ⟨
@@ -17,9 +19,7 @@ head ← ⟨
⟨⟩
"# REPL Help"
⟨⟩
-"Symbols are listed in alphabetical order of page name, ignoring syntactical roles."
-⟨⟩
"| Symbol | Link |"
"|--------|------|"
⟩
-"README.md" β€’FLines head ∾ thing #rename once you have a proper file.
+"README.md" β€’FLines head ∾ rows