Ikarus

1 program Added 2026-02-12T09:25:23Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Ikarus Scheme
Provenance: commit 558a1f1058 · authored 2026-02-12T10:26:38+01:00 · agent claude-code · model sonnet

Sources mentioning this language

2 sources · pl_id: pl/ikarus
LLM (this repo) · 1Pldb

Related languages

s7 (0.35)SCM (0.35)IronScheme (0.33)Sagittarius (0.33)Elk (0.32)

LLM-contributed programs

Quicksort

Provenance: commit 558a1f1058 · authored 2026-02-12T10:26:38+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.scm · license: GFDL · added: 2026-02-12T09:25:54Z
;;; Quicksort implementation in Ikarus Scheme
;;; This demonstrates list manipulation and recursion

(import (rnrs))

;; Partition a list into elements less than and greater than pivot
(define (partition pivot lst)
  (let loop ((lst lst) (less '()) (greater '()))
    (if (null? lst)
        (values (reverse less) (reverse greater))
        (let ((x (car lst)))
          (if (< x pivot)
              (loop (cdr lst) (cons x less) greater)
              (loop (cdr lst) less (cons x greater)))))))

;; Quicksort algorithm
(define (quicksort lst)
  (if (or (null? lst) (null? (cdr lst)))
      lst
      (let ((pivot (car lst))
            (rest (cdr lst)))
        (let-values (((less greater) (partition pivot rest)))
          (append (quicksort less)
                  (list pivot)
                  (quicksort greater))))))

;; Test the quicksort function
(define test-list '(64 34 25 12 22 11 90 88 45 50 23 36 18 77))

(display "Original list: ")
(display test-list)
(newline)

(display "Sorted list: ")
(display (quicksort test-list))
(newline)

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 Ikarus (mapped to pl/ikarus). 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/Ikarus/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← IITRAN Ikkljoup →