Checks if a substring is in a string.
The string to search in
A function that takes a needle (substring) and returns true if it's in the haystack
elemOfStr('abc')('a') // trueelemOfStr('abc')('ab') // trueelemOfStr('abc')('d') // falseopt('ab').exists(elemOfStr('abc')) // true
Checks if a substring is in a string.