I'd like to be able to write a procedure, including
its current state (continuation?)
to a file to make it persistant. For
example:
(define add-a-num (lambda (num)
(lambda (x) (+ num x))
)
)
(define add-3 (add-a-num 3))
Then save add-3 to a file for later
use.
I've tried opening an ouput file and writing add-3,
but all that gets written is
#<procedure:n:n>
Thanks
Rob
|