4 ms·
If you like haskell, you might* like some of the other applications of linq's query syntax, like combinatoric parser construction. [1] The query syntax isn't ha
by recursive 2y ago
If you like haskell, you might* like some of the other applications of linq's query syntax, like combinatoric parser construction. [1] The query syntax isn't hard-coded to do stuff with IEnumerable, that's just what it does by default. It can be used for pretty much anything. It works a bit like operator overloading.
[1]: https://github.com/acple/ParsecSharp/blob/da8d0cb9ec39e28dd976b4a9b0092927dc482f13/UnitTest.ParsecSharp/Tutorial.cs#L176 https://github.com/acple/ParsecSharp/blob/da8d0cb9ec39e28dd9...