[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error on returning a pair
From: |
Stefan Israelsson Tampe |
Subject: |
Re: Error on returning a pair |
Date: |
Fri, 8 May 2020 16:23:27 +0200 |
(x . x) is not creating a pair, use (cons x x) or `(,x . ,x)
On Fri, May 8, 2020 at 4:16 PM reetindersidhu <address@hidden>
wrote:
> Hi
>
> Getting a guile error for
>
> (lambda (x) (x . x))
>
> but not for
>
> (lambda (x) (x x))
>
> This may be a dumb question, but why is this?
>
> Same behavior in versions 2.2.6 and 3.0.2.
>
> Regards
> Reetinder Sidhu
>
>