Returns a new Triple whose third component is the result of transform applied to the current third component.
The other components are carried over unchanged.
mapping applied to the third component.