This must be very simple, but I haven't been able to find an answer. How can I have org-babel output the results of multiple statements?
#+BEGIN_SRC scheme :exports both (define square (lambda (x) (* x x))) (define (smallest-divisor n) (define (divides? a b) (= (remainder b a) 0)) (define (find-divisor n test-divisor) (cond ((> (square test-divisor) n) n) ((divides? test-divisor n) test-divisor) (else (find-divisor n (+ test-divisor 1))))) (find-divisor n 2)) ;; 3 statements follow: (smallest-divisor 199) (smallest-divisor 1999) (smallest-divisor 19999) #+END_SRC #+RESULTS: 7
I'd like results to give me all values, as in:
#+RESULTS: 199 1999 7
Please point me to an answer, should this question happen to be a duplicate.