Function: org-babel-get-rownames
org-babel-get-rownames is a byte-compiled function defined in
ob-core.el.gz.
Signature
(org-babel-get-rownames TABLE)
Documentation
Return the row names of TABLE.
Return a cons cell, the car of which contains the TABLE less
rownames, and the cdr of which contains a list of the rownames.
Note: this function removes any hlines in TABLE.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
(defun org-babel-get-rownames (table)
"Return the row names of TABLE.
Return a cons cell, the `car' of which contains the TABLE less
rownames, and the `cdr' of which contains a list of the rownames.
Note: this function removes any hlines in TABLE."
(let* ((table (org-babel-del-hlines table))
(rownames (funcall (lambda ()
(let ((tp table))
(mapcar
(lambda (_row)
(prog1
(pop (car tp))
(setq tp (cdr tp))))
table))))))
(cons table rownames)))