You are probably using a student language instead of #lang racket To fix put "#lang racket" at the top of your program or click the language button at the bottom-left of your Dr.Racket window and pick a non-teaching language.
On Mon, May 23, 2016 at 1:47 PM, 'Leo Rokon' via Racket Users < racket-users@googlegroups.com> wrote: > I just downloaded DrRacket, and it mostly works for me. > > However, I tried an example: > > (cons 1 2) > > And get this error message: > > cons: second argument must be a list, but received 1 and 2 > > ---- > > The example here: > > > http://download.racket-lang.org/releases/6.5/doc/guide/Pairs__Lists__and_Racket_Syntax.html?q=cons > > says that (cons 1 2) is OK. > > What is the problem? > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.