diff --git a/part2.html b/part2.html index 820283d..88b625a 100644 --- a/part2.html +++ b/part2.html @@ -3404,7 +3404,7 @@ this topic connects to equational reasoning discussed in chapter 10.
Many langages have an option type. This type is called Optional<T> in Java, std::optional<T> in C++, Nullable<T> in C#, and so on. These types often have behaviour resembling the Haskell Maybe monad, for example:
Optional.flatMap corresponds to >>=: it lets you apply a Function<T,<Optional<U>> to an Optional<T> and get an Optional<U>.Optional.flatMap corresponds to >>=: it lets you apply a Function<T,Optional<U>> to an Optional<T> and get an Optional<U>.Nullable types. For example, a + null becomes null.