How do I create a variables name from scratch and run it
Posted: Wed May 07, 2014 3:39 am
Normally I can do (defparameter N 1) and run "N" at the repl and it would output 1.
Well I have variables from another package I need to setf to the variable "A"(for example)...The variables can be anything but they all start with the prefix "cv::" w/o quotes eg cv::b, cv::test,
cv::x ...Lets say the variable cv::b equals 500,
so
I need a function with one parameter like this:
so if I run (foo b) it will set the variable cv::b that is already created and equals 500 to a new variable "A" in side the function. so after I runn (foo b). I can evaluate "A" at the REPL and the output would be"
Can someone help me do this?
Well I have variables from another package I need to setf to the variable "A"(for example)...The variables can be anything but they all start with the prefix "cv::" w/o quotes eg cv::b, cv::test,
cv::x ...Lets say the variable cv::b equals 500,
so
Code: Select all
REPL> cv::b
500
Code: Select all
(defun foo (x)
"other stuff here"
)
Code: Select all
REPL> A
500
Can someone help me do this?