withLast<T> method

Tuple3<T1, T2, T> withLast<T>(
  1. T value
)

Returns a new tuple with the last element replaced by value.

Implementation

Tuple3<T1, T2, T> withLast<T>(T value) => Tuple3(first, second, value);