4 ms·
In the parse example if the parse fails would we end up with 4 more function calls ? (rather than one if check and a bail out)
by hakcermani 10y ago
In the parse example if the parse fails would we end up with 4 more function calls ? (rather than one if check and a bail out)
- village-idiot 10y agoAny function like map or flatMap that only affects one side of the either is a no-op if the current value is the wrong side. It's a bit like calling map on an Optional::empty, a no-op.