Re:18.S097 Applied Category Theory: Textbook (2019)
by contravariant on Monday November 06, 2023 @04:31AM
(#38160433)
Monads are fairly simple as well if you use C#'s brilliantly chosen names SELECT and SELECTMANY for the two relevant maps.
[ Parent
| on HN ]
Re:18.S097 Applied Category Theory: Textbook (2019)
by agumonkey on Monday November 06, 2023 @05:33AM
(#38160855)
> SELECTMANY
is that a form of flatmap ?
Re:18.S097 Applied Category Theory: Textbook (2019)
by mormegil on Monday November 06, 2023 @07:16AM
(#38161546)
That's exactly it, SelectMany is what in .NET corresponds to flatMap in e.g. Java. (And, unlike the parent, I don't like the narrow scope of .NET naming very much, focusing on just the list monad (a.k.a. IEnumerable).)