ob-rust icon indicating copy to clipboard operation
ob-rust copied to clipboard

Babel "functional mode" and argument passing?

Open fosskers opened this issue 4 years ago • 1 comments

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.

fosskers avatar Jun 01 '21 17:06 fosskers

Hi there, any thoughts?

fosskers avatar Sep 23 '21 00:09 fosskers