withFirst<T> method

Tuple2<T, T2> withFirst<T>(
  1. T value
)

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

Implementation

Tuple2<T, T2> withFirst<T>(T value) => Tuple2(value, second);