runners3431
runners3431

Reputation: 1455

What's wrong with my let syntax?

What's wrong with my let syntax in scheme?

error: Cannot read property 'car' of undefined

(define (test x)

    (let (a 1))

    )

Upvotes: 1

Views: 624

Answers (1)

Martin Dinov
Martin Dinov

Reputation: 8815

The correct syntax is:

(let ((a value1)
      (b value2))
   exp)

You forgot an opening bracket.

Upvotes: 3

Related Questions