mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 15:27:36 +02:00
Moving around test files
This commit is contained in:
parent
93a7a9d2eb
commit
6eb6a4feec
2 changed files with 21 additions and 0 deletions
21
kons.scm
Normal file
21
kons.scm
Normal file
|
@ -0,0 +1,21 @@
|
|||
;; A temporary test file
|
||||
(import (scheme base)
|
||||
(scheme write)
|
||||
(srfi 9))
|
||||
|
||||
(define-record-type <pare>
|
||||
(kons x y)
|
||||
pare?
|
||||
(x kar set-kar!)
|
||||
(y kdr))
|
||||
|
||||
;(write
|
||||
; (list
|
||||
; (pare? (kons 1 2)) ; =. #t
|
||||
; (pare? (cons 1 2)) ; =. #f
|
||||
; (kar (kons 1 2)) ; =. 1
|
||||
; (kdr (kons 1 2)) ; =. 2
|
||||
; (let ((k (kons 1 2)))
|
||||
; (set-kar! k 3)
|
||||
; (kar k)))) ;=. 3
|
||||
|
Loading…
Add table
Reference in a new issue