mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 08:17:35 +02:00
WIP
This commit is contained in:
parent
bccbef125b
commit
0dc1c7c232
1 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,22 @@
|
||||||
|
;; An alternate test case for SRFI 1 failing to compile:
|
||||||
|
;(import (scheme base))
|
||||||
|
;
|
||||||
|
;(define-syntax :optional
|
||||||
|
; (syntax-rules ()
|
||||||
|
; ((:optional rest default-exp)
|
||||||
|
; (let ((maybe-arg rest))
|
||||||
|
; (cond ((null? maybe-arg) default-exp)
|
||||||
|
; ((null? (cdr maybe-arg)) (car maybe-arg))
|
||||||
|
; (else (error "too many optional arguments" maybe-arg)))))))
|
||||||
|
;
|
||||||
|
;(define (alist-delete! key alist . maybe-=)
|
||||||
|
; (let ((= (:optional maybe-= equal?)))
|
||||||
|
; (filter! (lambda (elt) (not (= key (car elt)))) alist)))
|
||||||
|
;
|
||||||
|
;(alist-delete! #f '())
|
||||||
|
;;END
|
||||||
|
|
||||||
|
|
||||||
;(import (scheme base))
|
;(import (scheme base))
|
||||||
;(cond
|
;(cond
|
||||||
; (else #t))
|
; (else #t))
|
||||||
|
|
Loading…
Add table
Reference in a new issue