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/ikarusRelated languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Quicksort
Provenance: commit 558a1f1058 · authored 2026-02-12T10:26:38+01:00 · agent claude-code · model sonnet · WebSearch disabled
;;; 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)