I use DrScheme to work through SICP, and I noticed that some procedures (like square) are used over and over again. I would like to put them in a separate file so that I can include them in other programs without rewriting them every time, but I cannot figure out how to do this.
I tried:
(load filename)
(load (filename))
(load ~/path-to-directory/filename)
(require filename)
(require ~/path-to-directory/filename)
(require path-from-root/filename)
None of these works. Obviously, I grab onto a straw - any help is greatly appreciated.
source
share