[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: return column from table as a column

From: Roger Mason
Subject: Re: return column from table as a column
Date: Tue, 17 Aug 2021 18:12:16 -0230
User-agent: mu4e 1.5.6; emacs 27.2


Maxim Nikulin writes:

> Notice that you can get vertical representation of results as a list
> #+begin_src emacs-lisp :results list
> The following is a variation of a recipe suggested by Juan Manuel:
> #+name: to-column
> #+begin_src emacs-lisp :var lst=()
>    (mapcar #'list lst)
> #+end_src
> #+begin_src emacs-lisp :var data=s1[,3] :post to-column(lst=*this*)
>    data
> #+end_src
> To transform more than one column, the following idea may be useful
> (defun rotate (list-of-lists)
>    (apply #'mapcar #'list list-of-lists))
> https://stackoverflow.com/questions/3513128/transposing-lists-in-common-lisp

Thank you very much.  I should really make the effort to re-learn
e-lisp.  Not having written anything in it for 10+ years has eroded my

Best wishes,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]