withLast<T> method

Tuple1<T> withLast<T>(
  1. T value
)

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

Implementation

Tuple1<T> withLast<T>(T value) => Tuple1(value);