scheme - 如何从 MIT 方案访问环境变量?

标签 scheme mit-scheme

假设我在启动 MIT Scheme 之前在 bash 中设置了一个环境变量(例如 export FOO=123)。如何获取环境变量的值?

最佳答案

(get-environment-variable "FOO")

关于https://srfi.schemers.org/srfi-98/srfi-98.html的备注声明 MIT Scheme 定义了这个函数。

关于scheme - 如何从 MIT 方案访问环境变量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50334289/

相关文章:

scheme - 有人使用Scheme 编程语言吗?

scheme - 如何将整数值转换为字符?方案,DrRacket

linux - 如何安装 dorodango 包管理器 Scheme 语言

vim - 安装 slimv 时出错

scheme - 为什么我的对输出中出现 mcons 符号?

macros - 如何在 guile scheme 中扩展宏?

scheme - 方案中标识符和符号之间的区别?

functional-programming - 方案括号

scheme - 为什么使用 list 或 cons 构建时相同的数据打印不同?

performance - 为什么 Racket 的实现比 MIT Scheme 快这么多?