Org Babel functions for LFE (Lisp Flavoured Erlang) evaluation.
Option | Example |
---|---|
:session | :session mysession |
:PROPERTIES: :exports: both :session: mysession :END:
(! (self) #(1 2 3))
#(1 2 3)
#+BEGIN_SRC lfe :results code (! (self) #(1 2 3)) #+END_SRC #+RESULTS: #+BEGIN_SRC lfe #(1 2 3) #+END_SRC
(receive
(`#(,x ,y ,z)
(io:format "received ~p ~p ~p\n"
(list x y z))))
received 1 2 3 ok
#+BEGIN_SRC lfe (receive (`#(,x ,y ,z) (io:format "received ~p ~p ~p\n" (list x y z)))) #+END_SRC #+RESULTS: : received 1 2 3 : ok