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