gscheme/examples/characters.scm

16 lines
346 B
Scheme
Raw Permalink Normal View History

2022-08-05 05:28:40 -04:00
(for-each display
'(#\( #\" #\' #\a #\space #\b #\tab #\c #\)))
;;; from comp.lang.scheme
(let ((x (list 1)) (y (list 2)))
(for-each display
(list "Before: " "x = " (car x) " and y = " (car y)
#\newline))
(set-car! (if #t x y) 3.1415)
(for-each display
(list "After: " "x = " (car x) " and y = " (car y)
#\newline)))