"Eric Schulte" <schulte.e...@gmail.com> writes:

[...]

> Alright, I've made two changes, first, it is now possible to pass elisp
> vectors through to code blocks, e.g.,
>
> #+begin_src emacs-lisp :var data=[1 2 3]
>   (elt data 1)
> #+end_src
> #+results:
> : 2
>
> Second, I've added a slightly hackey but seemingly necessary
> post-processing step to a call to calc-eval in ob-calc to remove quotes
> from vectors.  This allows vector processing to take place---at least as
> far as my limited calc knowledge is concerned.  For example;
>
> #+begin_src calc :var y=[1 2 3]
>   3 y
> #+end_src
> #+results:
> : [3, 6, 9]
>
> Hope this helps -- Cheers -- Eric

Indeed. Works very well.  Thanks!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.646.g57806)

Reply via email to