Implement 'remq', 'remv', and 'remove' in Scheme
Issue #30
new
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)
-
-
reporter - edited description
Fixed the link!
-
- marked as enhancement
- Log in to comment
Excellent bug report! Good description, title, and examples! (Oh, I think your link to the Scheme docs is not correct)