[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Concatenating results
From: |
Ihor Radchenko |
Subject: |
Re: Concatenating results |
Date: |
Mon, 03 Oct 2022 16:45:29 +0800 |
Felix Dorner <felix.dorner@gmail.com> writes:
> I have a list of N source blocks, of which each produces a table, and all
> these tables have the same column count. What is the easiest way to now
> make a single table which is the result of calling all these blocks and
> concatenating the result?
>
> Essentially, would be also the same as N CALL together but all append to
> the same result instead of a result for each CALL.
There are can be multiple ways to achieve what you want.
One way could be using noweb references:
#+name: block1
#+begin_src emacs-lisp :results table
'((1 2) (3 4))
#+end_src
#+name: block2
#+begin_src emacs-lisp :results table
'((5 6) (7 8))
#+end_src
#+begin_src emacs-lisp
(append
'<<block1()>>
'<<block2()>>)
#+end_src
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>