K9 Public Docs
APL One‑Page Cheat Sheet
Print‑ready and minimal. Return to the full guide in index.html.
Array Basics
⍳nGenerate 1…n⍴AShape of Am n⍴AReshape A,ARavel (flatten)A,BCatenateStructural
n↑ATaken↓ADrop⌽AReverse⊂AEnclose⊃ADisclose / pickArithmetic
A+BElement‑wise addA×BElement‑wise multiplyA÷BElement‑wise divide|AAbsolute value⌈A / ⌊ACeiling / floorReductions
+/ASum×/AProduct⌈/AMax⌊/AMin+\APrefix sumsComparisons
A=BEqualA≠BNot equalA<B / A>BLess / greaterA≤B / A≥BLess‑eq / greater‑eqA≡BMatchStrings + I/O
S ⍷ TFind substring⍕AFormat to string⎕UCS AUnicode codepoints⎕JSON AEncode JSON0 ⎕JSON SDecode JSONIdioms
(A>0)/AFilter by mask⌽⍳nReverse range2 3⍴⍳6Matrix+/AReduce with ++\AScan with +