3 ms·
wrnr - This is literally the 'flatmap' solution you referred to above, but in sugared form - what they were probably trying to see was whether or not you unders
by kian 7y ago
wrnr - This is literally the 'flatmap' solution you referred to above, but in sugared form - what they were probably trying to see was whether or not you understood how to collapse a pair of Maybes into a single Nothing if either component is missing without needing to do an if test - i.e., whether or not you understand the essence of the bind operatorion in the context of the Maybe Monad.