Cat

1 program Added 2025-10-30T17:50:18Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit aa60e8f191 · authored 2025-10-30T18:50:18+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

4 sources · pl_id: pl/cat
LLM (this repo) · 1PldbEsolangRosettacode

Related languages

Picat (0.14)Catala (0.12)Toccata (0.11)Syndicate (0.09)TwinCAT (0.04)

LLM-contributed programs

Quicksort in Cat

Provenance: commit aa60e8f191 · authored 2025-10-30T18:50:18+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.cat · added: 2025-10-30T17:50:18Z
// Quicksort in Cat
//
// This is a fairly direct translation of the standard
// recursive quicksort algorithm.

define smaller {
  [<] filter
}

define larger_or_equal {
  [>=] filter
}

define qsort {
  [
    [null]
    [uncons [dup larger_or_equal] dip [smaller] bi qsort]
    [enconcat]
  ]
  [[]]
  case
}

// Example:
[2 1 4 3 5] qsort

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 Cat (mapped to pl/cat). 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/Cat/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← CASTLE Cat (Language) →