withFirst<T> method

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

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

Implementation

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