ob-rust
ob-rust copied to clipboard
Babel "functional mode" and argument passing?
Is it (or could it be) possible to pass arguments to Rust snippets from previous source blocks, as in this example:
#+name: directories
#+begin_src sh
cd ~/sync/org && du -sc * | grep -v total
#+end_src
#+RESULTS: directories
| 8 | 2019.org |
| 156 | 2020.org |
| 28 | 2021.org |
| 68 | coding.org |
| 4 | history.txt |
| 4 | notes.org |
| 4 | sysadmin.org |
#+begin_src python :var dirs=directories
return len(dirs)
#+end_src
#+RESULTS:
: 7
Thank you.
Hi there, any thoughts?