> > #+begin_src scheme :var y=10 :results value
> > (+ 10 y)
> > #+end_src
> >
> > #+RESULTS:
> > : 10
>
> I'm surprised by this one - shouldn't we expect the result 20 ?
>
Hi Neil, yes, that was a typo, I pasted in the wrong result. Sorry for the
confusion!
/h
On Sun, 10 Apr 2022, 16:39 , wrote:
> On Sun, Apr 10, 2022 at 04:00:31PM +0100, Neil Jerram wrote:
> > Hi Henrik,
> >
> > On Sun, 10 Apr 2022 at 10:56, Henrik Frisk wrote:
> > >
> > > Hi,
> > >
> > > I'm not a skilled (scheme) programmer so maybe there is something
> obvious I'm missing here. In
On Sun, Apr 10, 2022 at 04:00:31PM +0100, Neil Jerram wrote:
> Hi Henrik,
>
> On Sun, 10 Apr 2022 at 10:56, Henrik Frisk wrote:
> >
> > Hi,
> >
> > I'm not a skilled (scheme) programmer so maybe there is something obvious
> > I'm missing here. In the first example the header argument y is interp
Hi Henrik,
On Sun, 10 Apr 2022 at 10:56, Henrik Frisk wrote:
>
> Hi,
>
> I'm not a skilled (scheme) programmer so maybe there is something obvious I'm
> missing here. In the first example the header argument y is interpreted as I
> would expect it, but in the second it isn't:
>
> #+begin_src sc
writes:
> On Sun, Apr 10, 2022 at 11:53:51AM +0200, Henrik Frisk wrote:
>> Hi,
>>
>> I'm not a skilled (scheme) programmer so maybe there is something obvious
>> I'm missing here. In the first example the header argument y is interpreted
>> as I would expect it, but in the second it isn't:
>
> H
> 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,
On Sun, Apr 10, 2022 at 11:53:51AM +0200, Henrik Frisk wrote:
> Hi,
>
> I'm not a skilled (scheme) programmer so maybe there is something obvious
> I'm missing here. In the first example the header argument y is interpreted
> as I would expect it, but in the second it isn't:
Hm. You are expecting
Hi,
I'm not a skilled (scheme) programmer so maybe there is something obvious
I'm missing here. In the first example the header argument y is interpreted
as I would expect it, but in the second it isn't:
#+begin_src scheme :var y=10 :results value
(+ 10 y)
#+end_src
#+RESULTS:
: 10
but not th