首页 > 解决方案 > 引用 Scheme 中的列表时出错,使用 `define` 函数命名

问题描述

我在 Scheme 中使用define. 我试过了

(define aList (list 0 16 19))

(list-ref ‘(aList) 1)

但它说“错误:aList不是函数”。为什么?请帮忙。

标签: functionsyntaxschemequotefunction-call

解决方案



推荐阅读