RecordOfValuesExtension2<T1, T2> extension

Extension on a Record with 2 positional values.

on
  • (T1, T2)

Properties

first → T1
Returns the first element of this record.
no setter
last → T2
Returns the last element of this record.
no setter
second → T2
Returns the second element of this record.
no setter

Methods

map<R>(R callback(T1, T2)) → R
Converts this Record with 2 positional values to a new type R using the provided callback with 2 positional arguments.