Roman Cheplyaka

Results 79 comments of Roman Cheplyaka

There *shouldn't* be any exponential blowup scenarios here. The precise complexity depends on how you use the library. If it's just matching, then I think it would be O(n) time...

> I was hoping for more than empirical evidence, since you can never be sure there are no expressions that cause problems. So empirical evidence wouldn't convince you yet a...

You can define reFoldl1 in terms of reFoldl in the same way as some is defined in terms of many.

I don't feel strongly about this; feel free to do it if you want.

Not sure I understand. What do you mean by "restriction API"? `reFoldl` _is_ general enough to express this pattern, but a wrapper such as `reFoldl1` can be added to make...

I think you are correct. Would you care to prepare a PR? Just in case someone is relying on the old behavior, let's introduce the corrected version under a new...

Unfortunately, this is not possible because `sym 'a'` is translated to `psym (== 'a')`, and you cannot extract `'a'` out of `(== 'a')`.

Yeah, or maybe have a class containing `sym` and perhaps some other functions, and make both types instances of that class. The other constructors it should probably support are: 1....

Thanks @ceedubs, those are some nice ideas.

Use the function to match the whole line, and include the equivalent of `.*` at the beginning of the pattern.