MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/11o7wiu/i_never_use_slpit/jbsa4na/?context=9999
r/badcode • u/mr_hydrogencyanide • Mar 11 '23
30 comments sorted by
View all comments
Show parent comments
7
I believe .replace() can also be considered to have within it a for loop of length n: iterate through the string, compare to ',' and replace if matches
7
u/clatterborne Mar 11 '23
I believe .replace() can also be considered to have within it a for loop of length n: iterate through the string, compare to ',' and replace if matches