Implement 'remq', 'remv', and 'remove' in Scheme

Issue #30 new
Katie Burke created an issue

remq, remv and remove should all return a list containing the elements of the list with all occurrences of obj removed. ( http://www.scheme.com/tspl4/objects.html#./objects:s53 )

(remq 'a '(a b a c a d))

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'remq'

(remv 1/2 '(1.2 1/2 0.5 3/2 4))

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'remv'

(remove '(b) '((a) (b) (c)))

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'remove'

Comments (3)

  1. Doug Blank

    Excellent bug report! Good description, title, and examples! (Oh, I think your link to the Scheme docs is not correct)

  2. Log in to comment