Sidef

1 program Added 2025-11-12T13:24:32Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 508e12e2ee · authored 2025-11-12T14:24:32+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

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

Related languages

Alef (0.18)Chef (0.18)Self (0.18)Silq (0.18)Simit (0.17)

LLM-contributed programs

Quicksort Implementation

Provenance: commit 508e12e2ee · authored 2025-11-12T14:24:32+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.sf · added: 2025-11-12T13:24:32Z
func qsort(lst) {
    var len = lst.len
    len < 2 and return lst
    var pivot = lst.pop
    var lo = lst.grep { _ < pivot }
    var hi = lst.grep { _ >= pivot }
    return qsort(lo) + [pivot] + qsort(hi)
}

say qsort([3,1,4,1,5,9,2,6])

Contribute — propose a file extension

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