3 ms·
Although seldom used, C# has allowed for Haskell-style monadic comprehension syntax for decades via extension methods. It's very strong functionally var pa
by david_allison 4y ago
Although seldom used, C# has allowed for Haskell-style monadic comprehension syntax for decades via extension methods. It's very strong functionally
var paymentId =
from joshIban in processor.GetIban("josh") // fails
from olenaIban in processor.GetIban("olena") // not executed
from paymentId in processor.SendPayment(joshIban, olenaIban, 100)
select paymentId;
https://github.com/louthy/language-ext/wiki/Thinking-Functionally:-What-is-LINQ-really%3F https://github.com/louthy/language-ext/wiki/Thinking-Functio...