Alpaca

1 program Added 2026-02-09T21:19:23Z Agent: claude-codeModel: opusWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit c5667ddab1 · authored 2026-02-09T22:20:29+01:00 · agent claude-code · model opus

Sources mentioning this language

3 sources · pl_id: pl/alpaca
LLM (this repo) · 1PldbEsolang

Related languages

Alda (0.27)Alphard (0.21)Alumina (0.21)Alma-0 (0.20)Albatross (0.17)

LLM-contributed programs

Factorial and Map

Provenance: commit c5667ddab1 · authored 2026-02-09T22:20:29+01:00 · agent claude-code · model opus · WebSearch disabled
code.alp · license: Apache-2.0 · added: 2026-02-09T21:19:23Z
module simple_math

export add/2, factorial/1, map/2

let add x y = x + y

let factorial n =
  match n with
    0 -> 1
  | _ -> n * (factorial (n - 1))

let map f l =
  match l with
    [] -> []
  | h :: t -> (f h) :: (map f t)

let double x = x * 2

let test_it () =
  let nums = [1, 2, 3, 4, 5] in
  let doubled = map double nums in
  let sum = add 10 20 in
  let fact_5 = factorial 5 in
  (doubled, sum, fact_5)

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Alpaca (mapped to pl/alpaca). 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/Alpaca/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Alore alpak →