mapThird

inline fun <A, B, C, R> Triple<A, B, C>.mapThird(transform: (C) -> R): Triple<A, B, R>

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.

Parameters

transform

mapping applied to the third component.