[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to remove parentheses from the output of a source code block
From: |
Greg Minshall |
Subject: |
Re: how to remove parentheses from the output of a source code block |
Date: |
Wed, 28 Sep 2022 09:42:02 +0300 |
Andrés,
sorry -- of course, you can use base e-lisp =string-join= to accomplish
the same thing.
----
#+BEGIN_SRC emacs-lisp :var table=source-in-table :results value raw
(let ((sqlcode (mapcar (lambda (row)
(concat "INSERT or ignore INTO labels_catalog (id,
macro, language1, language2) VALUES ("
(number-to-string (nth 0 row)) ", '" (nth 1
row) "', '" (nth 2 row) "', '"
(nth 3 row) "');\n")
) table)))
(string-join sqlcode " "))
#+END_SRC
----
cheers, Greg