New: monadsAll contenthive-129948krhive-196917hive-183959zzanhive-180932hive-185836hive-166405steemhive-150122hive-101145hive-144064uncommonlabhive-183397hive-184714hive-188619hive-145157krsuccessbitcoinlifehive-193637hive-180301motivationhive-103599hive-193186TrendingNewHotLikerscrell (53)in php • 5 years agoType matching in PHPOne of the nice features of Rust is the match keyword. match is similar to switch , but with two key differences: It requires an exhaustive match, that is, every possible value must be…damii (25)in haskell • 7 years agoMonadic Parsing in HaskellJust running piece of code.. I had some problems with code from Erik Meijer and Graham Hutton publication from this pdf: Older version of this parser example was used by Erik Meijer in video…woz.software (55)in programming • 7 years agoLets build a maybe library in C# - Maybe extensionsI thought I would add a couple of extensions to the Maybe monad to show how using monadic patterns can spread through your code when you start to use them and that is a good thing as they carry much…woz.software (55)in programming • 7 years agoLets build a monad library - Using Maybe and some extra thoughtsIn the last part I created a Maybe monad for C#, a type that allows you to indicate a lack of a value. I pointed out it is like Nullable but better. If you missed the story so far:…woz.software (55)in programming • 7 years agoLets build a monad library in C# - MaybeApart from the Identity monad, the Maybe monad is probably the easiest to understand so I will start there. In C# think Nullable but able to wrap reference types as well as reference types. I will…woz.software (55)in programming • 7 years agoLets build a monad library for C# - IntroductionI have done various C# pieces on monads and how C# LINQ is a monad engine. Thought I would put my money where my mouth is and build a monad library and explain the design decisions as I go. In…sayan (42)in monads • 8 years agoНаш мир лучший из возможныхВеликий немецкий философ и математик Лейбниц как то высказался, что наш мир - наилучший из всех возможных миров. Каково бы ни было состояние мира, оно всегда является результатом действий всех…otaviomacedo (25)in programming • 8 years agoNested types and function compositionIn Scala and other typed functional languages – notably Haskell – monads are structures that allow the programmer to take a sequence of computations, each defined for a certain context, and chain…