Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Scheme 的完整初学者。我必须编写一个函数来读取文件并使用with-input-from-fileproc 将其内容加载到变量中。该文件的内容是一个列表,例如(1 2 (3 4) abc r).
with-input-from-file
(1 2 (3 4) abc r)
我什至不知道如何开始。有人可以帮助我吗?
(define my-list (call-with-input-file "file-that-contains-list.txt" read))