DONE scheme support

  • State "DONE" from "" 2010-08-31 Tue 08:46

Scheme code blocks are now supported. The scheme used for both external and interactive evaluation can be controlled through the org-babel-scheme-cmd variable and through the :scheme header argument.

The following demonstrates both regular and session based evaluation.

initial scheme support

#+source: numbers
#+begin_src scheme
  (map (lambda (el) (+ el 1)) '(1 2 3))
#+end_src

#+results:
| 2 | 3 | 4 |

#+begin_src scheme :var numbers=numbers
  (map (lambda (el) (- el 1)) numbers)
#+end_src

#+results:
| 1 | 2 | 3 |

scheme sessions

#+begin_src scheme :var number=9 :session *scheme* :scheme guile
  (+ number 0)
#+end_src

#+results:
: 9

#+begin_src scheme :var number=9 :session *scheme* :scheme racket
  (+ number 1)
#+end_src

#+results:
: 10