superpower icon indicating copy to clipboard operation
superpower copied to clipboard

Re-introduce Text() on TextParser<char[]> and TextParser<TextSpan>

Open ewoutkramer opened this issue 5 years ago • 0 comments

Sprache had a Text() combinator that was basically a shorthand for .Select(cs=>new string(cs)) on a Parser<char[]>.

Would it be useful to re-introduce this in Superpower, also using it on TextParser<TextSpan>? (basically equivalent to .Select(sp => sp.ToString())?

ewoutkramer avatar Mar 27 '19 08:03 ewoutkramer