4 ms·
I love StartsWith, EndsWith and also Contains in C#. Contains especially feels so nice to use compared to IndexOf all the time.
by benologist 15y ago
I love StartsWith, EndsWith and also Contains in C#. Contains especially feels so nice to use compared to IndexOf all the time.
- michaelcampbell 15y agoIndeed. As a Java guy, I was a bit surprised ruby's default library didn't have them (when I started with ruby, anyway; way pre-rails; it might now). Trivial to implement, but still.