summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-05-12 04:38:39 -0600
committerGitHub <noreply@github.com>2024-05-12 04:38:39 -0600
commitf1a1fe071a994261f4a26bd32cea5824f8ad5f1b (patch)
tree99619ff67c41ae0025a8984e1f425ddf596a678b
parenta929a00571aa62703ae72c3212a4e73778b396b6 (diff)
[apl/en] format correctly (#4938)
-rw-r--r--apl.html.markdown (renamed from apl.apl)14
1 files changed, 10 insertions, 4 deletions
diff --git a/apl.apl b/apl.html.markdown
index 76ff1865..f72da2c5 100644
--- a/apl.apl
+++ b/apl.html.markdown
@@ -1,6 +1,11 @@
-⍝ These examples can be tested here:
-⍝ http://ngn.github.io/apl/web/index.html
-⍝
+---
+language: APL
+contributors:
+ - ["nooodl", "https://github.com/nooodl"]
+filename: learnapl.apl
+---
+
+```apl
⍝ Comments in APL are prefixed by ⍝.
⍝ A list of numbers. (¯ is negative)
@@ -17,7 +22,7 @@
⍝ All functions have single-argument and dual-argument
⍝ meanings. For example, "×" applied to two arguments
-⍝ means multiply, but when applied to only a right-hand
+⍝ means multiply, but when applied to only a right-hand
⍝ side, it returns the sign:
× ¯4 ¯2 0 2 4 ⍝ ¯1 ¯1 0 1 1
@@ -55,3 +60,4 @@ A ← 10 60 55 23
⍝ We can define this as a function using {} and ⍵:
mean ← {(+/⍵)÷⍴⍵}
mean A ⍝ 37
+```