From 36be2475cb988fdd831b3842175491d57abf9c26 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 15 Sep 2022 14:50:05 -0400 Subject: Orient BQN to Dyalog function translation table vertically, and various corrections --- docs/doc/fromDyalog.html | 257 ++++++++++++++++++++++++++--------------------- 1 file changed, 141 insertions(+), 116 deletions(-) (limited to 'docs') diff --git a/docs/doc/fromDyalog.html b/docs/doc/fromDyalog.html index 8fca184b..734ceafc 100644 --- a/docs/doc/fromDyalog.html +++ b/docs/doc/fromDyalog.html @@ -109,136 +109,160 @@

The assignment arrow defines a new variable in a block, while modifies an existing one.

BQN uses the ligature character for stranding, instead of plain juxtaposition. It also has a list notation using ⟨⟩, and [] for higher-rank arrays.

For reading

-

Here are some closest equivalents in Dyalog APL for the BQN functions that don't use the same glyphs. Correspondence can be approximate, and is just used as a decorator to mean "reverse some things".

+

Glyphs +-×÷⌊⌈|⊣⊢⌽⍉ have nearly the same meaning in BQN as APL. Closest equivalents in Dyalog APL for the other functions are below (except !, Assert).

- - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - -
BQN¬=<>BQNMonadDyad
Monad**(÷2)[][]~⍤⍴,
Dyad**÷1+-=<>**
- - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - + + + - -
BQN»«*(÷2)*÷
Monad,,⍥⊂,⍥⊂,,≢↑(¯1-≢)↑⊢-≢↑(1+≢)↑⊢
Dyad,⍥⊂,⍥⊂,⊢↑-⊢↑⍪⍨{[]}
- - - - - - - - - - - - - + + + - - - - - - - - - - - - - + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BQN/{[]}
Monad∪⍳¬~1+-
Dyad or =⍤⍴=
<<
>>
,
,
,⍥⊂,⍥⊂
,⍥⊂,⍥⊂
,
{,⍨⍀}
,
» ≢↑(¯1-≢)↑⊢ ⊢↑
«-≢↑(1+≢)↑⊢-⊢↑⍪⍨
/
, reversed order
∪⍳
+..<(){R⍺⍳⍪⍨(R⍨⍳R)}
or
@@ -289,7 +313,7 @@ Dyalog proposed Under - Depth + Depth Reverse Compose @@ -315,9 +339,10 @@ > <˘ < +` - <(0<≡) (¬-˜⊢×·+`»>) - {(∾𝕊¨)(0<≡)𝕩} + <(1≥≡) (¬-˜⊢×·+`»>) + {(∾𝕊¨)(1<≡)𝕩} + / {𝕩(𝕨/)𝕨0𝕩} ∊/⊣ ⊣∾∊˜¬/⊢ -- cgit v1.2.3