Re: Error on returning a pair
(x . x) is not creating a pair, use (cons x x) or `(,x . ,x) On Fri, May 8, 2020 at 4:16 PM reetindersidhu 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
Error on returning a pair
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