I am working with a .rkt file in VSCodium, using the Magic Racket extension.
File Contents:
#lang racket
(define (square x) (* x x))
(define myNums (list 1 2 3 4 5))
(define hisNums '(2 4 6 8 10 9 7 5 3 1))
(square (car(cdr(cdr hisNums))))
(car(cdr(cdr hisNums)))
(cons(square(car(cdr(cdr hisNums)))) (car(cdr(cdr hisNums))))
(cons(square(car(cdr(cdr hisNums)))) (cdr(cdr hisNums)))
(square (car(cdr(cdr myNums))))
(car(cdr(cdr myNums)))
(cons(square(car(cdr(cdr myNums)))) (car(cdr(cdr myNums))))
(cons(square(car(cdr(cdr myNums)))) (cdr(cdr myNums)))
When I choose the Racket: Load file in REPL
command, VSCodium opens Racket with
racket --repl --eval '(enter! (file "filename.rkt"))'
and the output in the terminal is,
Welcome to Racket v8.8 [cs].
string::9: read: expected a `)` to close `(`
>
and the file is not loaded into the REPL.
What is the line
string::9: read: expected a `)` to close `(`
trying to tell me?
How do I solve this issue and get the file loaded into the REPL without that error message?
Edit
I need to clarify that do understand that it is complaining about a missing closing parens somewhere, but more important is that I need help interpreting/translating the following portion into English:
string::9: read:
I don't know how to read that.