Getting closer to tracking down the member bug, but cannot use debugger on laptop screen.

This commit is contained in:
Simon Brooke 2026-03-16 15:26:12 +00:00
parent d42ece5711
commit de50a30be2
11 changed files with 89 additions and 55 deletions

View file

@ -10,9 +10,7 @@
(set! member? (lambda
(item collection)
"`(member item collection)`: Return `t` if this `item` is a member of this `collection`, else `nil`."
(print (list "In member? item is " item "; collection is " collection))
(println)
"`(member? item collection)`: Return `t` if this `item` is a member of this `collection`, else `nil`."
(cond
((= 0 (count collection)) nil)
((= item (car collection)) t)