APL step-by-step
APL:
Run
Result
Show s-expressions?
Show evaluation steps
Show inline names on steps
Symbols
⍳ (range)
? (deal)
← (assign)
× (multiply)
⍋ (grade-up)
α (left arg)
⍴ (reshape)
↓ (drop)
− (subtract)
÷ (divide)
? (roll)
+ (add)
/ (reduce)
⍒ (grade-down)
ω (right arg)
Environment
(no variables have been assigned)
Examples
add two numbers
▶
2 + 2
addition over array
▶
2 + 1 2 3
sum array and add
▶
+/⍳4 + 2
assign a variable
▶
x ← 1 2 3
evaluate a variable
▶
x + 2
deal add reduce range add
▶
2 ? 1 2 3 + +/⍳2 + 2