Hi all,
Currently when I want to check if a string contains a substring, I need to use javascript's indexOf, or other tricks.
Of course, I always write first "foo" in "foobar", but that doesn't work. That would be the best solution to me. Would it be possible to see that in LiveScript ?
Then I look at prelude and I don't find something like Str:contains. That would also be nice.
Any chance to see that coming ?
Thanks !
Hi all,
Currently when I want to check if a string contains a substring, I need to use javascript's
indexOf, or other tricks.Of course, I always write first
"foo" in "foobar", but that doesn't work. That would be the best solution to me. Would it be possible to see that in LiveScript ?Then I look at prelude and I don't find something like
Str:contains. That would also be nice.Any chance to see that coming ?
Thanks !