Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Copy-a-string/Ol/copy-a-string.ol
Normal file
15
Task/Copy-a-string/Ol/copy-a-string.ol
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(define a "The String.")
|
||||
|
||||
; copy the string
|
||||
(define b (runes->string (string->runes a)))
|
||||
(print "a: " a)
|
||||
(print "b: " b)
|
||||
(print "b is an a: " (eq? a b))
|
||||
(print "b same as a: " (equal? a b))
|
||||
|
||||
; another way: marshal the string
|
||||
(define c (fasl-decode (fasl-encode a) #f))
|
||||
(print "a: " a)
|
||||
(print "c: " c)
|
||||
(print "c is an a: " (eq? a c))
|
||||
(print "c same as a: " (equal? a c))
|
||||
Loading…
Add table
Add a link
Reference in a new issue