GNU bug report logs - #43304
(scheme base) "member" should return #f if object is not in list

Previous Next

Package: guile;

Reported by: Erik Dominikus <erik.dominikus71 <at> gmail.com>

Date: Thu, 10 Sep 2020 07:55:01 UTC

Severity: normal

Fixed in version 3.0.6

Done: Taylan Kammer <taylan.kammer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Erik Dominikus <erik.dominikus71 <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: (scheme base) "member" should return #f if object is not in list
Date: Thu, 10 Sep 2020 10:46:58 +0700
Dear Guile authors,

I would like to report an issue:

Version: Guile 3.0.2 (but should also apply to master; Git says the
"member" in module/scheme/base.scm hasn't changed since October 2019)

How to reproduce: Run "guile" and then type this:

((@ (scheme base) member) 0 '(1))

Expected: #f

Actual: ()

Reason: page 43 of R7RS-small https://small.r7rs.org/attachment/r7rs.pdf
"If obj does not occur in list, then #f (not the empty list) is returned."

Thank you.

Best regards,

Erik




This bug report was last modified 4 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.