[racket] TLS "atom?" definition for Scheme does not work in DrRacket
On Mar 4, 2015, at 1:18 PM, Rufus <rlaggren at mail.com> wrote:
> If I then add Alexander's example define so the def file appears as follows:
> ---------
> (define rufus 0)
>
> (define atom? (lambda (arg1)
> (and (not (pair? arg1))
> (not (null? arg1)))))
> -------------
>
> and hit Run I get an error in the I-pane:
>
> "pair?; this function is not defined”.
When you include this:
(define and ‘dummy)
Do you get:
define: expected a variable name, or a function name and its variables (in parentheses), but found a keyword
instead of the `pair?` error?