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

From: Erik Dominikus <[email-masked]>
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