maybe add :results output to the last block
On 09/25/2015 12:04 PM, Lawrence Bottorff wrote:
#+BEGIN_SRC emacs-lisp
(setq animals '(gazelle giraffe lion tiger))
#+END_SRC
#+RESULTS:
| gazelle | giraffe | lion | tiger |
and then this
#+begin_src emacs-lisp
(defun print-elements-of-list (list)
try:
#+BEGIN_SRC emacs-lisp :results output
(print-elements-of-list animals)
#+END_SRC
the default results are value, and your function does not return
anything I think. It prints them to output.
Lawrence Bottorff writes:
> If I do this:
>
> #+BEGIN_SRC emacs-lisp
> (setq animals '(gazelle gira
If I do this:
#+BEGIN_SRC emacs-lisp
(setq animals '(gazelle giraffe lion tiger))
#+END_SRC
#+RESULTS:
| gazelle | giraffe | lion | tiger |
and then this
#+begin_src emacs-lisp
(defun print-elements-of-list (list)
"Print each element of LIST on a line of its own."
(while list
(print (ca