4 ms·
Rather than monads, map is more likely to be familiar from sequences, and an optional is just a sequence with length < 2.
by edflsafoiewq 2y ago
Rather than monads, map is more likely to be familiar from sequences, and an optional is just a sequence with length < 2.
- eru 2y agoWell, monads get their map from functors, and they call it 'map' (or fmap) because of map on sequences.