mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
[apl/en] format correctly (#4938)
This commit is contained in:
parent
a929a00571
commit
f1a1fe071a
@ -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 ⍝.
|
⍝ Comments in APL are prefixed by ⍝.
|
||||||
|
|
||||||
⍝ A list of numbers. (¯ is negative)
|
⍝ A list of numbers. (¯ is negative)
|
||||||
@ -55,3 +60,4 @@ A ← 10 60 55 23
|
|||||||
⍝ We can define this as a function using {} and ⍵:
|
⍝ We can define this as a function using {} and ⍵:
|
||||||
mean ← {(+/⍵)÷⍴⍵}
|
mean ← {(+/⍵)÷⍴⍵}
|
||||||
mean A ⍝ 37
|
mean A ⍝ 37
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user