John Kitchin <jkitc...@andrew.cmu.edu> writes:

D> the problem seems to be that c0 and c2 are set to nil for some reason. I
> doubt dash has anything to do with it. Try these:
>
> #+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
> c0
> #+END_SRC
>
>
> #+RESULTS:
> | 1 | 2 | 3 | 4 |
>
> #+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
> c2
> #+END_SRC
>
>
> #+RESULTS:
> | 3 | 4 | 6 | 7 |
>
> Here is a non-dash solution that works for two lists.
>
> #+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
> (loop for a in c0 for b in c2 collect (list a b))
> #+END_SRC

Or

#+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2]
  (cl-mapcar 'list c0 c2)
#+END_SRC


-- 
This message is brought to you by the department of redundant departments


Reply via email to