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.
我对球拍很陌生,最近开始使用列表示例,但是当我运行以下地图示例时:
(map sqrt (list 1 2 3 4))
我收到此错误:map: this function is not defined
map: this function is not defined
Racket 有多种语言。您使用哪种语言?如果您使用的是Beginning Student,它不支持任何高阶函数,因为预计初学者还不会知道这些。
当然,标准的 Racket 语言 ( #lang racket) 确实是map内置的。事实上,中级学生和高级学生也是如此。
#lang racket
map