O(n+m) The
isInfixOf function takes two
Texts and
returns
True if and only if the first is contained, wholly and
intact, anywhere within the second.
This function is strict in its first argument, and lazy in its second.
In (unlikely) bad cases, this function's time complexity degrades
towards
O(n*m).