andThen "f" argument is wrongfully typed
SteakOvercooked opened this issue · comments
Ivan commented
Doc comments say that the usage of andThen
goes like this:
const opt = Some(1).andThen((val) => val + 1);
Which is wrong because it actually expects you create an Option
with the result:
const opt = Some(1).andThen((val) => Some(val + 1));