diff options
Diffstat (limited to 'help')
| -rw-r--r-- | help/after_bind.md | 2 | ||||
| -rw-r--r-- | help/before_bind.md | 2 | ||||
| -rw-r--r-- | help/fold.md | 4 | ||||
| -rwxr-xr-x | help/genhelp.bqn | 19 | ||||
| -rw-r--r-- | help/groupindices_group.md | 2 | ||||
| -rw-r--r-- | help/identity_left.md | 2 | ||||
| -rw-r--r-- | help/identity_right.md | 2 | ||||
| -rw-r--r-- | help/index.md | 70 | ||||
| -rw-r--r-- | help/insert.md | 32 | ||||
| -rw-r--r-- | help/scan.md | 2 | ||||
| -rw-r--r-- | help/transpose_reorderaxes.md | 2 | ||||
| -rw-r--r-- | help/valences.md | 2 |
12 files changed, 132 insertions, 9 deletions
diff --git a/help/after_bind.md b/help/after_bind.md index 5163d4f9..a0c15279 100644 --- a/help/after_bind.md +++ b/help/after_bind.md @@ -6,7 +6,7 @@ Supply `π` as a right argument to `π½` (`π© π½ π`). -## `π` must be a value, `F` must be dyadic. +`π` must be a value, `F` must be dyadic. -β3 9 diff --git a/help/before_bind.md b/help/before_bind.md index 290e8fe9..c2d0acd5 100644 --- a/help/before_bind.md +++ b/help/before_bind.md @@ -6,7 +6,7 @@ Supply `π` as a left argument to `πΎ` (`π πΎ π©`). -## `π` must be a value, `πΎ` must be dyadic. +`π` must be a value, `πΎ` must be dyadic. 3βΈ- 9 diff --git a/help/fold.md b/help/fold.md index 3684d96c..33b2e0f5 100644 --- a/help/fold.md +++ b/help/fold.md @@ -5,7 +5,9 @@ ## `π½Β΄ π©`: Fold Fold over `π©` with `π½` from right to left i.e. Insert `π½` between the elements of `π©`. - + +`π©` must be a simple list (`1 = =π©`). + +Β΄ 1βΏ2βΏ3 1+2+3 diff --git a/help/genhelp.bqn b/help/genhelp.bqn new file mode 100755 index 00000000..cf50c939 --- /dev/null +++ b/help/genhelp.bqn @@ -0,0 +1,19 @@ +#!/usr/bin/env cbqn + +thing β { + data β β’FLines π© + names β (β£βΎ", "βΎβ’)Β΄{(¬·β§`' 'βΈ=)βΈ/βΎβ½(2+β/':'=π©)βπ©}Β¨("## "β‘3βΈβ)Β¨βΈ/data + tβΏd β βΎ/Β¨(βdata)=Β¨"()" + sym β "`"βΎΛ"`"βΎ{'`':"` ` `"; '|':"\"βΎπ© ; π©}Β―3β2βdata + β’Show "| " βΎ sym βΎ " | [" βΎ names βΎ "]("βΎ((t+1)βdββdata)βΎ ") |" +}Β¨β’args + +head β β¨ +"*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/index.html).*" +β¨β© +"# REPL Help" +β¨β© +"| Symbol | Link |" +"|--------|------|" +β© +"index.md.tmp" β’FLines head βΎ thing #rename once you have a proper file.
\ No newline at end of file diff --git a/help/groupindices_group.md b/help/groupindices_group.md index ee0e9762..5afa162b 100644 --- a/help/groupindices_group.md +++ b/help/groupindices_group.md @@ -6,7 +6,7 @@ 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 diff --git a/help/identity_left.md b/help/identity_left.md index dabe6cc7..3a61225b 100644 --- a/help/identity_left.md +++ b/help/identity_left.md @@ -2,7 +2,7 @@ # Left Tack (`β£`) -## `β£ π©`: +## `β£ π©`: Identity Return `π©`. diff --git a/help/identity_right.md b/help/identity_right.md index a0844a8f..da81bf11 100644 --- a/help/identity_right.md +++ b/help/identity_right.md @@ -2,7 +2,7 @@ # Right Tack (`β’`) -## `β’ π©`: +## `β’ π©`: Identity Return `π©`. diff --git a/help/index.md b/help/index.md new file mode 100644 index 00000000..8a0f2c1b --- /dev/null +++ b/help/index.md @@ -0,0 +1,70 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/index.html).* + +# REPL Help + +| Symbol | Link | +|--------|------| +| `\|` | [Absolute Value, Modulus](https://mlochbaum.github.io/BQN/help/absolutevalue_modulus.html) | +| `β` | [Bind, After, Dyadic After](https://mlochbaum.github.io/BQN/help/after_bind.html) | +| `!` | [Assert, Dyad](https://mlochbaum.github.io/BQN/help/assert_assertwithmessage.html) | +| `β` | [Atop, Dyadic Atop](https://mlochbaum.github.io/BQN/help/atop.html) | +| `βΈ` | [Bind Left, Before, Dyadic Before](https://mlochbaum.github.io/BQN/help/before_bind.html) | +| `β` | [Catch](https://mlochbaum.github.io/BQN/help/catch.html) | +| `β` | [Ceiling, Maximum](https://mlochbaum.github.io/BQN/help/ceiling_maximum.html) | +| `Λ` | [Cells](https://mlochbaum.github.io/BQN/help/cells.html) | +| `βΆ` | [Choose](https://mlochbaum.github.io/BQN/help/choose.html) | +| `β` | [Classify, Index Of](https://mlochbaum.github.io/BQN/help/classify_indexof.html) | +| `+` | [Conjugate, Add](https://mlochbaum.github.io/BQN/help/conjugate_add.html) | +| `Λ` | [Constant](https://mlochbaum.github.io/BQN/help/constant.html) | +| `β·` | [Deduplicate, Find](https://mlochbaum.github.io/BQN/help/deduplicate_find.html) | +| `β‘` | [Depth, Match](https://mlochbaum.github.io/BQN/help/depth_match.html) | +| `β` | [Depth](https://mlochbaum.github.io/BQN/help/depth.html) | +| `β₯` | [Deshape, Reshape](https://mlochbaum.github.io/BQN/help/deshape_reshape.html) | +| `Β¨` | [Each](https://mlochbaum.github.io/BQN/help/each.html) | +| `<` | [Enclose, Lesser Than](https://mlochbaum.github.io/BQN/help/enclose_lessthan.html) | +| `β` | [Enlist, Pair](https://mlochbaum.github.io/BQN/help/enlist_pair.html) | +| `β` | [Exponential, Power](https://mlochbaum.github.io/BQN/help/exponential_power.html) | +| `β` | [First Cell, Select](https://mlochbaum.github.io/BQN/help/firstcell_select.html) | +| `β` | [First, Pick](https://mlochbaum.github.io/BQN/help/first_pick.html) | +| `β` | [Floor, Minimum](https://mlochbaum.github.io/BQN/help/floor_minimum.html) | +| `Β΄` | [Fold, Fold With initial](https://mlochbaum.github.io/BQN/help/fold.html) | +| `β` | [Grade Down, Bins Down](https://mlochbaum.github.io/BQN/help/gradedown_binsdown.html) | +| `β` | [Grade Up, Bins Up](https://mlochbaum.github.io/BQN/help/gradeup_binsup.html) | +| `β₯` | [Greater Than or Equal To](https://mlochbaum.github.io/BQN/help/greaterthanorequalto.html) | +| `β` | [Group Indices, Group](https://mlochbaum.github.io/BQN/help/groupindices_group.html) | +| `β£` | [Identity, Left](https://mlochbaum.github.io/BQN/help/identity_left.html) | +| `β’` | [Identity, Right](https://mlochbaum.github.io/BQN/help/identity_right.html) | +| `/` | [Indices, Replicate](https://mlochbaum.github.io/BQN/help/indices_replicate.html) | +| `Λ` | [Insert, Insert With initial](https://mlochbaum.github.io/BQN/help/insert.html) | +| `βΎ` | [Join, Join](https://mlochbaum.github.io/BQN/help/join_jointo.html) | +| `β ` | [Length, Not Equal To](https://mlochbaum.github.io/BQN/help/length_notequals.html) | +| `β€` | [Lesser Than or Equal To](https://mlochbaum.github.io/BQN/help/lessthanorequalto.html) | +| `β` | [Unique Mask, Member Of](https://mlochbaum.github.io/BQN/help/markfirst_memberof.html) | +| `>` | [Merge, Greater Than](https://mlochbaum.github.io/BQN/help/merge_greaterthan.html) | +| `-` | [Negate, Subtract](https://mlochbaum.github.io/BQN/help/negate_subtract.html) | +| `Β¬` | [Logical Not, Span](https://mlochbaum.github.io/BQN/help/not_span.html) | +| `β` | [Occurrence Count, Progressive Index Of](https://mlochbaum.github.io/BQN/help/occurrencecount_progressiveindexof.html) | +| `β` | [Atop, Over](https://mlochbaum.github.io/BQN/help/over.html) | +| `β` | [Prefixes, Take](https://mlochbaum.github.io/BQN/help/prefixes_take.html) | +| `β` | [Range, Windows](https://mlochbaum.github.io/BQN/help/range_windows.html) | +| `=` | [Rank, Equal To](https://mlochbaum.github.io/BQN/help/rank_equals.html) | +| `β` | [Rank](https://mlochbaum.github.io/BQN/help/rank.html) | +| `Γ·` | [Reciprocal, Divide](https://mlochbaum.github.io/BQN/help/reciprocal_divide.html) | +| `β` | [Repeat](https://mlochbaum.github.io/BQN/help/repeat.html) | +| `β½` | [Reverse, Dyad](https://mlochbaum.github.io/BQN/help/reverse_rotate.html) | +| `` ` `` | [Scan, Scan With initial](https://mlochbaum.github.io/BQN/help/scan.html) | +| `Λ` | [Self, Swap](https://mlochbaum.github.io/BQN/help/self_swap.html) | +| `β’` | [Shape, Not Match](https://mlochbaum.github.io/BQN/help/shape_notmatch.html) | +| `Β»` | [Shift After, Shift After](https://mlochbaum.github.io/BQN/help/shiftafter.html) | +| `Β«` | [Shift Before, Shift Before](https://mlochbaum.github.io/BQN/help/shiftbefore.html) | +| `Γ` | [Sign, Multiply](https://mlochbaum.github.io/BQN/help/sign_multiply.html) | +| `β` | [Solo, Couple](https://mlochbaum.github.io/BQN/help/solo_couple.html) | +| `β¨` | [Sort Down, Logical Or](https://mlochbaum.github.io/BQN/help/sortdown_or.html) | +| `β§` | [Sort Up, Logical And](https://mlochbaum.github.io/BQN/help/sortup_and.html) | +| `β` | [Square root, Root](https://mlochbaum.github.io/BQN/help/squareroot_root.html) | +| `β` | [Suffixes, Drop](https://mlochbaum.github.io/BQN/help/suffixes_drop.html) | +| `β` | [Each](https://mlochbaum.github.io/BQN/help/table.html) | +| `β` | [Transpose, Reorder Axes](https://mlochbaum.github.io/BQN/help/transpose_reorderaxes.html) | +| `βΎ` | [Under](https://mlochbaum.github.io/BQN/help/under.html) | +| `βΌ` | [Undo](https://mlochbaum.github.io/BQN/help/undo.html) | +| `β` | [Valences, Dyadic Valences](https://mlochbaum.github.io/BQN/help/valences.html) | diff --git a/help/insert.md b/help/insert.md new file mode 100644 index 00000000..79642d39 --- /dev/null +++ b/help/insert.md @@ -0,0 +1,32 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/insert.html).* + +# 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 + + a β 3βΏ3 β₯ β9 + + 1βΏ1βΏ1 +Λ a + + 1 +Λ a + + 0βΏ1βΏ2 + 3βΏ4βΏ5 + 6βΏ7βΏ8 + 1βΏ1βΏ1 + + + + diff --git a/help/scan.md b/help/scan.md index c2e92f67..1847de86 100644 --- a/help/scan.md +++ b/help/scan.md @@ -2,7 +2,7 @@ # Grave (`` ` ``) -## ``π½` π©``: Fold +## ``π½` π©``: Scan Scan over `π©` with `π½` from left to right, producing intermediate values. diff --git a/help/transpose_reorderaxes.md b/help/transpose_reorderaxes.md index 244fc444..72060ce2 100644 --- a/help/transpose_reorderaxes.md +++ b/help/transpose_reorderaxes.md @@ -16,7 +16,7 @@ Move the first axis of `π©` to the end. -## `π¨ β π©`: Dyad +## `π¨ β π©`: Reorder Axes Rearrange the axes of `π©` as per the axis indices in `π¨`. diff --git a/help/valences.md b/help/valences.md index d7ef83b8..e9ac866e 100644 --- a/help/valences.md +++ b/help/valences.md @@ -12,7 +12,7 @@ Apply `π½` to `π©`. -## `π¨ π½βπΎ π©`: Valences +## `π¨ π½βπΎ π©`: Dyadic Valences Apply `πΎ` to `π¨` and `π©`. |
