Function: org-babel-lua-table-or-string

org-babel-lua-table-or-string is a byte-compiled function defined in ob-lua.el.gz.

Signature

(org-babel-lua-table-or-string RESULTS)

Documentation

Convert RESULTS into an appropriate Emacs Lisp value.

If the results look like a list or tuple, then convert them into an Emacs Lisp table, otherwise return the results as a string.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-lua.el.gz
(defun org-babel-lua-table-or-string (results)
  "Convert RESULTS into an appropriate Emacs Lisp value.
If the results look like a list or tuple, then convert them into an
Emacs Lisp table, otherwise return the results as a string."
  (let ((res (org-babel-script-escape results)))
    (if (listp res)
        (mapcar (lambda (el) (if (eq el 'None)
				 org-babel-lua-None-to el))
                res)
      res)))