Replacing Exceptions With Either/Maybe/Option
问题 I came across this dead end while trying to replace exceptions with either monad in c#. Which leads me to think maybe it is not only language specific problem and more technique related missing feature. Let me try to re-explain it more globally: Given: I have a 3rd party function( a function that is imported into my code and I have no access to) which receives a lazy list (c# IEnumerable,f# Seq...) and consume it I Want: To apply a function (LINQ select,map...) on the method's lazy list