Not sure if you know Clojure, but here's what I've been toying with:
#+name: my-test
#+begin_src clojure :var i=[1 2]
(map inc i)
#+end_src
#+RESULTS: my-test
| 2 | 3 |
looks good, but then
#+name: myfun1
#+begin_src clojure
(defn myfun1
[ ]
[8 9])
#+end_src
#+begin_src clojure :var i=myfunc1
(map inc i)
#+end_src
doesn't do anything, i.e., it doesn't process the myfunc1 and provide the vector [8 9]
This elisp code works, though:
#+name: mylist1
#+begin_src emacs-lisp
(defun mylist1 ()
(list 1 2 3 4))
#+end_src
then
#+begin_src emacs-lisp :var myx=(mylist1)
(mapcar '1+ myx)
#+end_src
#+RESULTS:
| 2 | 3 | 4 | 5 |
Note how I put mylist1 in parens. Without produced odd output
#+RESULTS:
| 110 | 122 | 109 | 106 | 116 | 117 | 50 |
. . . which is literally taking the ascii letters of the word "mylist1" and incrementing them. (Too much fun. . . ). What might be wrong with my Clojure attempt? I've tried (myfun1), myfun1, and myfun1() gives an error.