LINQ is great and it is in fact a functional paradigm. The same goes for the fairly new C# record types and switch statements. C# has been adding more and more functional capabilities.
LINQ is a great example of what @polterguy means when he says that programming is about input -> verb -> output.
The LINQ function SelectMany is usually called flatMap or collect in the FP world and it is a part of the defition of monads. So collections in C# can behave in a "monad-ish" way in C# with the addition of LINQ.
LINQ is great and it is in fact a functional paradigm. The same goes for the fairly new C# record types and switch statements. C# has been adding more and more functional capabilities.
LINQ is a great example of what @polterguy means when he says that programming is about input -> verb -> output.
The LINQ function
SelectManyis usually calledflatMaporcollectin the FP world and it is a part of the defition of monads. So collections in C# can behave in a "monad-ish" way in C# with the addition of LINQ.And we didn't even mention
ActionandFuncyet ... ;)