mapFirst
Returns a new Pair whose first component is the result of transform applied to the current first component.
The second component is carried over unchanged.
Parameters
transform
mapping applied to the first component.
Returns a new Triple whose first component is the result of transform applied to the current first component.
The other components are carried over unchanged.
Parameters
transform
mapping applied to the first component.