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

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

Signature

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

Documentation

Convert RESULTS into an appropriate elisp 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-scheme.el.gz
(defun org-babel-scheme--table-or-string (results)
  "Convert RESULTS into an appropriate elisp 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)))
    (cond ((listp res)
           (mapcar (lambda (el)
		     (if (or (null el) (eq el 'null))
			 org-babel-scheme-null-to
		       el))
                   res))
	  (t res))))