emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About babel and header arguments


From: Henrik Frisk
Subject: Re: About babel and header arguments
Date: Sun, 10 Apr 2022 12:39:12 +0200





Hm. You are expecting (12 10)?

Yes, sorry for not being clear.
 

> #+begin_src scheme :var y=10 :results output
>   ((lambda (x) (display x)) '(12 y))
> #+end_src

The quote extends to the whole (parenthesized) _expression_, i.e.
the y is quoted too, in there, so it's the symbol y, so that
output is correct:

> #+RESULTS:
> : (12 y) 
Yes, that makes sense now that I see it.
 

(That's Scheme, not Babel doing it). I don't know where you
want to go to, but perhaps try:

  (list 12 y)

instead: this would make a list of whatever 12 evaluates to (this
would be 12) and y evaluates to (this would be 10).

Yes, that  works, thank you!
/h

reply via email to

[Prev in Thread] Current Thread [Next in Thread]