4 ms·
It goes beyond that . LINQ isn't a monad, it's monadic syntax for any monad. It just so happens that the one everyone uses is IEnumerable. Here, I wrote the R
by runT1ME 14y ago
It goes beyond that . LINQ isn't a monad, it's monadic syntax for any monad. It just so happens that the one everyone uses is IEnumerable.
Here, I wrote the Reader monad for IoC to show it could be done:
https://gist.github.com/vmarquez/4640678 https://gist.github.com/vmarquez/4640678