Function: org-babel-get-colnames

org-babel-get-colnames is a byte-compiled function defined in ob-core.el.gz.

Signature

(org-babel-get-colnames TABLE)

Documentation

Return the column names of TABLE.

Return a cons cell, the car of which contains the TABLE less colnames, and the cdr of which contains a list of the column names.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
(defun org-babel-get-colnames (table)
  "Return the column names of TABLE.
Return a cons cell, the `car' of which contains the TABLE less
colnames, and the `cdr' of which contains a list of the column
names."
  ;; Skip over leading hlines.
  (while (eq 'hline (car table)) (pop table))
  (if (eq 'hline (nth 1 table))
      (cons (cddr table) (car table))
    (cons (cdr table) (car table))))