mapForOption
Maps a Option<T>
to Option<U>
by applying a transformer function
to an contained Some(T)
value, leaving an None
value untouched.
This function can be used to compose the results of two functions.
Maps a Option<T>
to Option<U>
by applying a transformer function
to an contained Some(T)
value, leaving an None
value untouched.
This function can be used to compose the results of two functions.