3 ms·
Combinator alternatives, especially nested ones, will "naively" iteratate over cases until match is found. In regexp those (nested) alternatives may be express
by mirekrusin 5y ago
Combinator alternatives, especially nested ones, will "naively" iteratate over cases until match is found.
In regexp those (nested) alternatives may be expressed much more efficiently as state machine or whatever.