Timeline for Check for occurences of string in other string
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Jun 11, 2014 at 18:43 | comment | added | Szabolcs |
Using the new composition operator in Mathematica 10, we could even just write a function as Length@*StringCases . This is shorter than Length@StringCases[##]& if we were to go for just writing a function but not actually apply it to a and b .
|
|
Jun 11, 2014 at 18:27 | history | edited | DavidC | CC BY-SA 3.0 |
added 48 characters in body
|
Jun 11, 2014 at 18:25 | comment | added | DavidC |
Thanks. I forgot about StringCases . It was unclear to me what the OP meant by the language's API.
|
|
Jun 11, 2014 at 17:53 | comment | added | Szabolcs |
Length@StringCases[a,b] is shorter. This problem is not well specified because if we're not allowed to use StringCount , it's not clear whether any of the other builtin String* functions should be allowed either ... they're all based on the same underlying code.
|
|
Jun 10, 2014 at 17:27 | history | answered | DavidC | CC BY-SA 3.0 |