3 ms·
Most 'optional' types have a 'map' function that allows you to apply a function to it, if it isn't None. That seems like a decent middle ground, though maybe le
by rocqua 5y ago
Most 'optional' types have a 'map' function that allows you to apply a function to it, if it isn't None. That seems like a decent middle ground, though maybe less useful when writing a few short functions.