Question text
Functions Operators
Monadic Dyadic
/ Reduce
+ Conjugate Addition ⌿ Reduce First
- Negation Subtraction \ Scan
× Direction Multiply ⍀ Expand First / Scan First
÷ Reciprocal Divide ¨ Each
| Magnitude Modulo ⍨ Duplicate / Commute
⌈ Ceiling Maximum ⍣ Repeat/Until
⌊ Floor Minimum ∙ Inner Product
⍟ Logarithm BaseLogarithm ⌻ Outer Product
⍳ Iota IndexOf ˝ Functional Inverse
⍴ Shape Reshape ∘ Compose
⊢ Self Right ⍛ Inverse Compose
⊣ Self Left ⍤ Rank
= Equals ⍥ Over
≠ Unique Mask Not equals ⍢ Under
< Rank Up Less than ⍫ Obverse
> Rank Down Greater than ∵ Derive Bitwise
≤ Less than or equal ∥ Parallel
≥ Greater than or equal λ Function Reference
⌷ List To Array Index ⍞ Apply
⊂ Encose Partition ⍰ Conditional Null Call
⊃ Disclose Pick
∧ Sort Increasing And/GCD Control
∨ Sort Decreasing Or/LCM
⍲ Nand if (a) {
⍱ Nor result
~ Not Without }
, Ravel Catenate
⍪ Table ,[0] if (a) {
↑ Take First Take resultIfTrue
↓ Drop First Drop } else {
? Random Draw resultIfFalse
⌽ Reverse Rotate
⊖ Reverse First Rotate First }
⍉ Transpose Reorder
≡ Depth Match when {
≢ Tally Not Match (conditionA) { resultIfA }
∊ Enlist Membership (conditionB) { resultIfB }
⍷ Find (1) { elseResult }
⍋ Grade Up }
⍒ Grade Down
/ Reduce Replicate while (a) {
⌿ Reduce First Replicate First code
⍕ Format Format With Pattern }
⍎ Parse Number
∪ Unique Union unwindProtect {
∩ Intersect mainCode
! Factorial Binomial } { unwind }
a → b ⍝ same as if (a) { →b }
throw (errorstring)
Welcome to Learn Kap. Solve the programming problems by typing into the input box. You might want to open the Kap Reference to another tab.
Some problems are solvable with one symbol only, so for example this is perfectly fine: myFun ⇐ ⌽
Use the arrow buttons to navigate between questions.
Click the "Check" button to check your answer.
You can skip up to 2 questions by clicking the forward arrow without answering.
The grid at the bottom shows the status of each question: green = correct, red = incorrect, yellow = skipped.
Learn Kap is under development. Known issues:
Credits:
the Learn Kap quiz: Teppo Saari
the Kap programming language: Elias Mårtensson