3 ms·
I believe there is a bug here. If the first character is an instance of c, then it will still be copied. For example, calling the function as condense_by_removi
by pbiggar 16y ago
I believe there is a bug here. If the first character is an instance of c, then it will still be copied. For example, calling the function as condense_by_removing ("loup-vailiant", 'l'), will return "loup-vaiiant", where it should return "oup-vaiiant".
(I've not tested this though, I may be wrong.)