1

I am very new to racket and started using lists examples recently, but when i run following map example:

(map sqrt (list 1 2 3 4))

I get this error: map: this function is not defined

Jack
  • 2,223
  • 13
  • 23
ashish
  • 11
  • 1

1 Answers1

2

Racket has many languages. Which language are you using? If you're using, say, Beginning Student, it does not have any support for any higher-order functions, since beginners are not expected to know about those yet.

The standard Racket language (#lang racket) does have map built-in, of course. In fact, Intermediate Student and Advanced Student do, too.

C. K. Young
  • 219,335
  • 46
  • 382
  • 435