withLast<T> method

Tuple2<T1, T> withLast<T>(
  1. T value
)

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

Implementation

Tuple2<T1, T> withLast<T>(T value) => Tuple2(first, value);