problem is is that I need to read in integers into a list before I run the insert/print function on them.
Anyways Before I was using an example list.
Code: Select all
(defparameter *MYLIST*
(list 4 6 4 18 8 2 14 7 15 5 19 12 15 5 9 0 17 2 2 19))
So it'd be something like this:
Read In value---> 5 (user inputs value)
Run Insert/then print on that
Read in value.....
Run Insert/print
Read In value
etc...
And go on until I stop inputting numbers.
Code: Select all
(defun T-tree()
(let ((test nil))
(dolist (run *MYLIST*)
(insert test run)
(print (print-tree)))
but I want it to do the insert function and print function as the values come in. So first it does it with 1 value.....then with 2 values......etc
I figured the test function should be the same. but I just have some kinda function that asks for another Integer for the list, and then adds it to it.
So something like this?
Code: Select all
(defun T-tree()
(let ((test nil))
(askuser) #Ask for Next integer to be put into *MYLIST*
(dolist (run *MYLIST*)
(insert test run)
(print (print-tree)))
thanks a bunch