Reputation: 1455
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
Reputation: 8815
The correct syntax is:
(let ((a value1)
(b value2))
exp)
You forgot an opening bracket.
Upvotes: 3