pub fn map_first<T: Index<0>, U>( f: impl FnMut(T::Nth) -> U, ) -> impl FnMut(T) -> T::NthMapped<U>
Returns a function that transforms the first element of a tuple with f. For a more generic function, see Tuple::map_nth
f
Tuple::map_nth