News for hackers. Stuff that matters.
Re:Functors, Applicatives, and Monads in Pictures (2013) by Zababa on Thursday October 21, 2021 @09:25AM (#28944008)
> Why wouldn't I just unwrap the values first and then do computation with the unwrapped values?

Same reason why you iterate over an array instead of assigning each value to a temporary variable: you have less code.

Re:Functors, Applicatives, and Monads in Pictures (2013) by coldtea on Thursday October 21, 2021 @02:58PM (#28949330)
Plus you can do it also for indeterminate size iterators, or values not there yet (promises etc)...