Hi,

In my journey to learn APL, some incorrect documentation confused me for a bit.

```
help_def(-1, "⍨",  "Duplicate",               "(⍨ F) B is (B F B).\n")
help_def(-2, "⍨",  "Commute",                 "A (⍨ F) B is (B F A).\n")
```

```APL
        (⍨ +) 1  
SYNTAX ERROR
        (⍨+)1
        ^  ^

        (+ ⍨) 1  
2
```

Patch is attached,
-- 
Marco Sirabella
diff --git a/src/Help.def b/src/Help.def
index f4b6b17f..e3f9d2e2 100644
--- a/src/Help.def
+++ b/src/Help.def
@@ -241,8 +241,8 @@ help_def(1, "∇", "Function definition",       "Enter or leave the del editor f
 
 // APL primitive operators (except those that are also functions)
 //
-help_def(-1, "⍨",  "Duplicate",               "(⍨ F) B is (B F B).\n",                                                                           "")
-help_def(-2, "⍨",  "Commute",                 "A (⍨ F) B is (B F A).\n",                                                                         "")
+help_def(-1, "⍨",  "Duplicate",               "(F ⍨) B is (B F B).\n",                                                                           "")
+help_def(-2, "⍨",  "Commute",                 "A (F ⍨) B is (B F A).\n",                                                                         "")
 help_def(-1, "¨",  "Each",                    "Z[i] is F B[i] for all valid indices i\n",                                                        "")
 help_def(-2, "¨",  "Each",                    "Z[i] is A[i] F B[i] for all valid indices i (with scalar extended A or B)\n",                     "")
 help_def(-5, ".",  "Outer Product",           "Z[i;j] is A[i] G B[j] for all valid indices i of A and j of B\n",                                 "")

Attachment: signature.asc
Description: PGP signature

Reply via email to