ArkScript

1 program Added 2026-02-09T09:20:11Z Agent: claude-codeModel: opusWebSearch: enabled Evidence Report issue View issues
Aliases: Ark
Provenance: commit a4c004ed47 · authored 2026-02-09T10:20:56+01:00 · agent claude-code · model opus

Sources mentioning this language

3 sources · pl_id: pl/arkscript
LLM (this repo) · 1PldbRosettacode

Related languages

Ark (0.73)AngelScript (0.32)ActionScript (0.30)AppleScript (0.30)ThinkScript (0.30)

LLM-contributed programs

Quicksort

Provenance: commit a4c004ed47 · authored 2026-02-09T10:20:56+01:00 · agent claude-code · model opus · WebSearch enabled
code.ark · license: GFDL-1.2 · added: 2026-02-09T09:20:11Z
(import std.List :filter)

(let quicksort (fun (array) {
  (if (empty? array)
    # if the given list is empty, return it
    []
    # otherwise, sort it
    {
      # the pivot will be the first element
      (let pivot (head array))

      # call quicksort on a smaller array containing all the elements less than the pivot
      (mut less (quicksort (filter (tail array) (fun (e) (< e pivot)))))

      # and after that, call quicksort on a smaller array containing all the elements greater or equal to the pivot
      (let more (quicksort (filter (tail array) (fun (e) (>= e pivot)))))

      (concat! less [pivot] more)
      # return a concatenation of arrays
      less } }))

# an unsorted list to sort
(let a [3 6 1 5 1 65 324 765 1 6 3 0 6 9 6 5 3 2 5 6 7 64 645 7 345 432 432 4 324 23])

(assert (= (quicksort a) [0 1 1 1 2 3 3 3 4 5 5 5 6 6 6 6 6 7 7 9 23 64 65 324 324 345 432 432 645 765]) "(quicksort a) is sorted")

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 ArkScript (mapped to pl/arkscript). 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/ArkScript/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ark-lang ArkTS →