Code: Select all
(silent)
(dolist (a '(2 4 6 8))
(println a))
(dolist (a '(1 3 5 7))
(format "%d" a))
2
4
6
8
I thought this should be like,
2
4
6
8
"1" "3" "5" "7"
Am I missing something in lisp-way?
Sorry for a dull question.
Code: Select all
(silent)
(dolist (a '(2 4 6 8))
(println a))
(dolist (a '(1 3 5 7))
(format "%d" a))
chang wrote:When i do this
Code: Select all
(silent)
(dolist (a '(2 4 6 8))
(println a))
(dolist (a '(1 3 5 7))
(format "%d" a))
chang wrote:newlisp gives me this
Code: Select all
2
4
6
8
chang wrote:I thought this should be like
Code: Select all
2
4
6
8
"1" "3" "5" "7"
Code: Select all
> (silent (dolist (a (sequence 2 8 2)) (println a)))
2
4
6
8
_; note: the prompt will be missing. press [enter] to see the prompt again.
Code: Select all
> [cmd](silent
(dolist (a (sequence 2 8 2)) (println a))
(dolist (a (sequence 1 7 2)) (print (format "%d" a))))
[/cmd]
2
4
6
8
1357_
Code: Select all
> [cmd](silent
(dolist (a (sequence 2 8 2)) (println a))
(dolist (a (sequence 1 7 2)) (print (format ""%d" " a))))
[/cmd]
2
4
6
8
"1" "3" "5" "7" _
It's those shiny questions that can be the worst :-)chang wrote:Sorry for a dull question.
Code: Select all
> [cmd]
(silent
(dolist (a (sequence 2 8 2)) (println a))
(dolist (a (sequence 1 7 2)) (print (format "%d" a))))
[/cmd]
2
4
6
8
1357