From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arvydas Silanskas Newsgroups: gmane.lisp.guile.bugs Subject: bug#48765: `member` from (scheme base) returns empty list instead of #f when item is not found Date: Tue, 1 Jun 2021 00:07:39 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000053bfc805c3a69e8b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40109"; mail-complaints-to="usenet@ciao.gmane.io" To: 48765@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon May 31 23:10:12 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnpAq-000AMJ-MV for guile-bugs@m.gmane-mx.org; Mon, 31 May 2021 23:10:12 +0200 Original-Received: from localhost ([::1]:60150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnpAp-0005wF-P2 for guile-bugs@m.gmane-mx.org; Mon, 31 May 2021 17:10:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnpAh-0005v4-5W for bug-guile@gnu.org; Mon, 31 May 2021 17:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnpAg-0005NR-UW for bug-guile@gnu.org; Mon, 31 May 2021 17:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnpAg-0001fQ-Pn for bug-guile@gnu.org; Mon, 31 May 2021 17:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arvydas Silanskas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 31 May 2021 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48765 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16224953596322 (code B ref -1); Mon, 31 May 2021 21:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 May 2021 21:09:19 +0000 Original-Received: from localhost ([127.0.0.1]:35029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnp9y-0001du-ON for submit@debbugs.gnu.org; Mon, 31 May 2021 17:09:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnp8g-0001bV-PM for submit@debbugs.gnu.org; Mon, 31 May 2021 17:08:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnp8g-0005lP-Js for bug-guile@gnu.org; Mon, 31 May 2021 17:07:58 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:44951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnp8e-00049k-Ci for bug-guile@gnu.org; Mon, 31 May 2021 17:07:58 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id b18so14386009lfv.11 for ; Mon, 31 May 2021 14:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9T+fN1yfg15lFWuNjJ9ylrA2K3CvplAbLfDNe2tLJ5Y=; b=m689iXf0Mkf0Rf+no4zz47sU9NMV3IMtxmipwjFomxcARGaPY3Pgm7GIUpBkeZz3FS sZiPz7mrH6WNdCCw5ST67kV9vwe5Gofsh6o4SMOOG/jPkiA0/puO+KfHmQOQKvHrh2pS V3tPuwUEEFTpNEztfyKfKCFpi4TcgcXlZkHqQRYdpxVXr8exKlcxEx+DORWR6fCCgf44 DNX6bcFUzrvHkSlDoqm/pB6sbBv+6sSqq7Tde+aZiSdCtt41MDb1FPNzb1eF5azDdLJI Q52vo+22XxgkQV4ql7GlawbD+UpGe13jQZPnYplEGwAaMzqs/aCz+GmoQN+MFvPUL1oC sJrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9T+fN1yfg15lFWuNjJ9ylrA2K3CvplAbLfDNe2tLJ5Y=; b=nXh2264uwVBHuyDypZzvfoL2OazffNy8wWiz6I7UtAUksBG3yv6l5M578Z3qDx7EpE h2wyG1kTaD243QdYMauBwC9WyctWJFbz/NO89OTIK10F5vfb1PVycfK0GXaydt/pyUN+ m70eI0x3Sr544T7xOGWXd/rmhE4GlY+9H4SEE35rhUZhRcG+leVIlQ0fTm1hUKm8FVex IRSa5yrgGky4e/Geq7LO2Svh8loBuUc/Tsl0cvcE00exW/1lBjdu24r9GBvKhyKwSE8+ iKSci63wjQ/5+yv+OTT0RoGBTtyqC4UbmcOiyvxf6nNVLYbVCVEmBBMJZck/0FqsCHsv gV5w== X-Gm-Message-State: AOAM532/Vatc6nUTQfn5RZGmPYXCeQJnJt6tI18LpTshQBYKmMCUb1xX N0yphQAWuKI3davCi79OPStlGb5Di4l4d7Oq2T/+x0oR X-Google-Smtp-Source: ABdhPJxB/KGMZwk/FBi7Om5YUg4E28IWDuVYg4EBWlad75lxk+Bu5NCYDWnswKOLPxTWjtSruxH9z1WhzDBnxnuX0WY= X-Received: by 2002:a05:6512:5c6:: with SMTP id o6mr16124506lfo.455.1622495271828; Mon, 31 May 2021 14:07:51 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=nma.arvydas.silanskas@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 31 May 2021 17:09:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10114 Archived-At: --00000000000053bfc805c3a69e8b Content-Type: text/plain; charset="UTF-8" Default `member` works fine: $ guile > (member 'a '(b)) $1 = #f However, using scheme base it returns empty list $ guile --r7rs > (import (scheme base)) > (member 'a '(b)) $1 = () Other functions (memq, memv) seem to work fine. I am using version 3.0.5 as distributed by debian bullseye --00000000000053bfc805c3a69e8b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Default `member` works fine:

$ guil= e
> (member 'a '(b))
$1 =3D #f

However, using scheme base it returns empty list

$ guile --r7rs
> (import (scheme base))
<= div>> (member 'a '(b))
$1 =3D ()

Oth= er functions (memq, memv) seem to work fine.
I am using versi= on 3.0.5 as distributed by debian bullseye
--00000000000053bfc805c3a69e8b--