【发布时间】:2020-12-20 04:46:54
【问题描述】:
我在Emacs 内的Geiser 环境中使用(string-ith "hello" 3)。显示错误
string-ith: undefined;
cannot reference an identifier before its definition
in module: top-level
context...:
eval-one-top
/usr/share/racket/collects/racket/repl.rkt:11:26
我在 Dr.Racket IDE 中尝试过同样的事情。使用默认的#lang racket,同样报错,
> (string-ith "hello" 3)
. . string-ith: undefined;
cannot reference an identifier before its definition
>
但是将语言更改为beginning student,它可以正常工作。
> (string-ith "hello" 3)
"l"
>
我试过(require racket/string),但没有用。
我发现使用racket 很困难。谁能解释一下原因?
【问题讨论】:
标签: racket