⎕
APL
·
PLAYGROUND
⌨ KEYS
LEARN →
GNU APL DOCS ↗
BOOTING ENGINE
[ EDITOR ]
PREFIX
`
+ KEY → GLYPH
+
▣
⇩
×
2 3⍴⍳6 ⍝ Matrix of first six ints +/⍳100 ⍝ Bad way to sum 100 consecutive ints {2÷⍨+/⍵×-/1,⍵←2⍴⍵}1 100 ⍝ Good way to sum 100 consecutive ints Avg←{(+/⍵)÷≢⍵} ⋄ Avg⍳100 ⍝ Average of 100 consecutive ints ∘⍨⍳5 ⍝ Inner product (+.×) selfie on ints ∘.×⍨⍳5 ⍝ Outer product selfie on ints
▸ Run (Ctrl·↵)
Share link
Clear session
[ SESSION ]
persist session
Engine starting. Output appears here.