values into mul

Started by joejoe, October 11, 2019, 04:08:36 PM

Previous topic - Next topic

joejoe

Hi,



I am trying this:


(set 'abc "8888")
(println abc)
(println (mul 2 abc))


and getting this:


8888

ERR: value expected in function mul : abc


What would be the way to get values into the mul function?



Thanks!

rickyboy

#1
Use read-expr.


(println (mul 2 (read-expr abc)))
(λx. x x) (λx. x x)

joejoe

#2
rickyboy,



You're the man, thanks big!



I hadn't gotten so far as the read-expr, much appreciated! =)