Fork me on GitHub
#braveandtrue
<
2018-09-03
>
moo15:09:19

Hi guys, am I missing something here for ex. 1 in ch7.

(eval (list (quote println)
            "Moo likes the Lord of the Rings Movie!"))
The ex. says to use eval, list and read-string. Somehow I don’t see how to use all three!

moo15:09:48

for example: I could replace quote for read-string and put println in quotes.

moo15:09:59

but, that’s still missing one.

_rj_r_15:09:41

@jm.moreau use read-string in place of quote and put the println in quotes.

(list (read-string "println") "hello!") => (println "hello!")
This creates a list with two elements, then adding eval, evaluates the form:
(eval (list (read-string "println") "hello!")) => hello!

👍 4