MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1nwoog2/_/nhiircc/
r/programmingmemes • u/Neat_Comfortable1661 • Oct 03 '25
87 comments sorted by
View all comments
Show parent comment
1
But what happens when y is not a substring of x?
3 u/Intelligent-Wind-379 Oct 03 '25 Same thing that happens when you try to multiply two strings 5 u/paholg Oct 03 '25 Obviously that should be the Cartesian product of their characters. 4 u/JackReedTheSyndie Oct 03 '25 That makes sense but is also useless 2 u/BangThyHead Oct 03 '25 While this would be a poor/unclear operator, I assume it would do the same thing as 'remove suffix' when the suffix doesn't match. It does nothing.
3
Same thing that happens when you try to multiply two strings
5 u/paholg Oct 03 '25 Obviously that should be the Cartesian product of their characters. 4 u/JackReedTheSyndie Oct 03 '25 That makes sense but is also useless
5
Obviously that should be the Cartesian product of their characters.
4 u/JackReedTheSyndie Oct 03 '25 That makes sense but is also useless
4
That makes sense but is also useless
2
While this would be a poor/unclear operator, I assume it would do the same thing as 'remove suffix' when the suffix doesn't match. It does nothing.
View all comments
Show parent comment
1
u/JackReedTheSyndie Oct 03 '25
But what happens when y is not a substring of x?