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 are in the form of a proper list, 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 are in the form of a proper list, then convert them into
an Emacs Lisp table, otherwise return the results as a string."
  (let ((res (and results (org-babel-script-escape results))))
    (cond ((proper-list-p res)
           (mapcar (lambda (el)
		     (if (or (null el) (eq el 'null))
			 org-babel-scheme-null-to
		       el))
                   res))
	  (t res))))