unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: reetindersidhu <reetindersidhu@pes.edu>
Cc: Guile User Mailing List <guile-user@gnu.org>
Subject: Re: Error on returning a pair
Date: Fri, 8 May 2020 16:23:27 +0200	[thread overview]
Message-ID: <CAGua6m3MqNGxxpOoxAAUM2VCbJgiF2nB+ZwtQ9PmechNBni5_Q@mail.gmail.com> (raw)
In-Reply-To: <5eb5511f.1c69fb81.6dbd8.6cda@mx.google.com>

(x . x) is not creating a pair, use (cons x x) or `(,x . ,x)

On Fri, May 8, 2020 at 4:16 PM reetindersidhu <reetindersidhu@pes.edu>
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
>
>


      reply	other threads:[~2020-05-08 14:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08 12:31 Error on returning a pair reetindersidhu
2020-05-08 14:23 ` Stefan Israelsson Tampe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGua6m3MqNGxxpOoxAAUM2VCbJgiF2nB+ZwtQ9PmechNBni5_Q@mail.gmail.com \
    --to=stefan.itampe@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=reetindersidhu@pes.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).