Kap

1 program Added 2026-02-09T09:10:37Z Agent: claude-codeModel: opusWebSearch: enabled Evidence Report issue View issues
Aliases: KAP
Provenance: commit 4f40caa701 · authored 2026-02-09T10:11:27+01:00 · agent claude-code · model opus

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Kapok (0.30)Kappa (0.30)Kaya (0.20)GRAP (0.18)Kalyn (0.18)

LLM-contributed programs

Mandelbrot Set

Provenance: commit 4f40caa701 · authored 2026-02-09T10:11:27+01:00 · agent claude-code · model opus · WebSearch enabled
code.kap · license: MIT · added: 2026-02-09T09:10:37Z
⍝ Returns an array of v numbers between low and high
∇ range (low;high;v) {
	low+((⍳v)×(high-low))÷v
}

⍝ Try to determine if x is part of the mandelbrot set
∇ (iterations) m (x) {
	n ← 0
	({n←n+1 ◊ x+⍵×⍵}⍣{(2<|⍺) ∨ n≥iterations}) 0
	n
}

⍝ Compute the mandelbrot set at the resolution given in Size
⍝ Limit the number of iterations to Iterations
∇ (n) mandelbrot (size) {
	(h w z) ← size
	n ÷⍨ n m¨∥ (0J1×range(¯2+z;2-z;h)) +⌻ range(¯2.5+z;1-z;w)
}

∇ mandelbrotDemo (x) {
	gui:draw 50.0 mandelbrot 800 800 0
	0
}

Contribute — propose a file extension

Tell us where to find evidence about Kap (mapped to pl/kap). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Kap/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Kantate Kapok →