Acute

1 program Added 2026-03-11T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit e8f139c7d3 · authored 2026-03-11T18:53:06+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

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

Related languages

Ć (0.38)Ante (0.30)Acumen (0.25)Asymptote (0.20)ACL2 (0.18)

LLM-contributed programs

Mergesort

Provenance: commit e8f139c7d3 · authored 2026-03-11T18:53:06+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.ml · added: 2026-03-11T10:00:00Z
(* Acute: Mergesort implementation *)
let rec merge xs ys =
  match xs, ys with
  | [], ys -> ys
  | xs, [] -> xs
  | x :: xs', y :: ys' ->
    if x <= y then x :: merge xs' ys
    else y :: merge xs ys'

let rec split = function
  | [] -> ([], [])
  | [x] -> ([x], [])
  | x :: y :: rest ->
    let (xs, ys) = split rest in
    (x :: xs, y :: ys)

let rec mergesort = function
  | [] -> []
  | [x] -> [x]
  | xs ->
    let (left, right) = split xs in
    merge (mergesort left) (mergesort right)

let () =
  let lst = [5; 3; 8; 1; 9; 2; 7; 4; 6] in
  let sorted = mergesort lst in
  List.iter (fun x -> Printf.printf "%d " x) sorted;
  print_newline ()

Contribute — propose a file extension

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