withLast<T> method

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

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

Implementation

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