[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I write a procedure to a file?

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