Ah Ok i think I understand.
Although our Professor emailed us because people were asking.
APPARENTLY i was just supposed to read in all the values into a list and then do the other functions. instead of what I initially thought (reading in an integer 1 by 1, then performing the task on it....1 by 1)
Although I think I understand now. I can just read them all into a list. but is there any way to kinda store the list as a "global variable"?
since before I had this as an example list
Code: Select all
(defparameter *example-list*
(list 4 6 4 18 8 2 14 7 15 5 19 12 15 5 9 0 17 2 2 19))
then I did this number on it
Code: Select all
(defun testing ()
(let ((test nil))
(dolist (ms *example-list*)
(insertf test ms)
(print (print-tree test)))
Or is the list you made using ur code already a global variable? so i can just replace *example-list* with it.
IM sorry for being such a newb with these things, but this is a basically learn on my own kinda thing sadly. (our teacher has been ill for the past 2 weeks, sadly no extension on our hw tho)
EITHER WAY, using ur code I get this error:
*** - EVAL: undefined function Ttree::PROMPT
ttree is the name of my package.