Closed SteakOvercooked closed 9 months ago
Doc comments say that the usage of andThen goes like this:
andThen
const opt = Some(1).andThen((val) => val + 1);
Which is wrong because it actually expects you create an Option with the result:
Option
const opt = Some(1).andThen((val) => Some(val + 1));
Doc comments say that the usage of
andThen
goes like this:Which is wrong because it actually expects you create an
Option
with the result: