Hello all,
I have a question about the remove-duplicates function.
I understand how it works, just want to ask a few things about it:
remove-duplicates sequence &key :from-end :test :test-not
:start :end :key
1. What exactly is the :test-not argument used for?
2. I wanted to use the remove-duplicates function to get rid of duplicate characters in a string. So I typed up something like this:
Thanks!
I have a question about the remove-duplicates function.
I understand how it works, just want to ask a few things about it:
remove-duplicates sequence &key :from-end :test :test-not
:start :end :key
1. What exactly is the :test-not argument used for?
2. I wanted to use the remove-duplicates function to get rid of duplicate characters in a string. So I typed up something like this:
(remove-duplicates "heyyyy cooooool aaaaaa" :TEST #'CHAR-EQUAL :from-end t)
Now my intention was to get hey cool a, but of course this did not happen. I instead got hey coola. #\space is also being seen as a duplicate. My question is, is there anyway to say "remove-duplicates EXCEPT ... "? I assumed maybe this is what :test-not does, but I tried it out and got this error: Error: Invalid :TEST-NOT argument: #\SpaceThanks!