in problem 1 , wrong answer when
#lang racket
(define (loop) (let ((n (read))) (unless (= n 42) (displayln n) (loop))))
but not
(define (loop) (let ((n (read))) (unless (= n 42) (displayln n) (loop))))

  • created

    Apr '17
  • last reply

    Oct '17
  • 1

    reply

  • 967

    views

  • 2

    users

5 months later

I bumped into that problem too. Maybe #lang racket is predefined line for Racket compiler, and we don’t have to worry about it. It’s not a big deal to ommit first line.:no_mouth: