bug#43304: (scheme base) "member" should return #f if object is not in list

Erik Dominikus <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <CAOopUjn+rhmpCdbFsP7b3228Boz=1GTQ2RHSmXo1Twk=n_Nucg@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.